mirror of
https://github.com/apache/activemq.git
synced 2025-02-18 16:10:45 +00:00
Adding a transport context variable.. see: http://www.nabble.com/Where-to-add-new-SSL-BrokerService-functionality-tf2088221.html
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@430820 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
befb3adc32
commit
7711c7450d
@ -36,6 +36,7 @@ public class ConnectionInfo extends BaseCommand {
|
|||||||
protected BrokerId[] brokerPath;
|
protected BrokerId[] brokerPath;
|
||||||
protected boolean brokerMasterConnector;
|
protected boolean brokerMasterConnector;
|
||||||
protected boolean manageable;
|
protected boolean manageable;
|
||||||
|
protected transient Object transportContext;
|
||||||
|
|
||||||
public ConnectionInfo() {
|
public ConnectionInfo() {
|
||||||
}
|
}
|
||||||
@ -142,5 +143,27 @@ public class ConnectionInfo extends BaseCommand {
|
|||||||
public void setManageable(boolean manageable){
|
public void setManageable(boolean manageable){
|
||||||
this.manageable=manageable;
|
this.manageable=manageable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Transports may wish to associate additional data with the connection. For
|
||||||
|
* example, an SSL transport may use this field to attach the client certificates
|
||||||
|
* used when the conection was established.
|
||||||
|
*
|
||||||
|
* @return the transport context.
|
||||||
|
*/
|
||||||
|
public Object getTransportContext() {
|
||||||
|
return transportContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Transports may wish to associate additional data with the connection. For
|
||||||
|
* example, an SSL transport may use this field to attach the client certificates
|
||||||
|
* used when the conection was established.
|
||||||
|
*
|
||||||
|
* @param transportContext value used to set the transport context
|
||||||
|
*/
|
||||||
|
public void setTransportContext(Object transportContext) {
|
||||||
|
this.transportContext = transportContext;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user