mirror of https://github.com/apache/activemq.git
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/branches/activemq-4.0@430823 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
353ba22e31
commit
1c0e39f7c9
|
@ -36,6 +36,7 @@ public class ConnectionInfo extends BaseCommand {
|
|||
protected BrokerId[] brokerPath;
|
||||
protected boolean brokerMasterConnector;
|
||||
protected boolean manageable;
|
||||
protected transient Object transportContext;
|
||||
|
||||
public ConnectionInfo() {
|
||||
}
|
||||
|
@ -142,5 +143,27 @@ public class ConnectionInfo extends BaseCommand {
|
|||
public void setManageable(boolean 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…
Reference in New Issue