From 1c0e39f7c942cae683225138e85eae7e34cb3a4b Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Fri, 11 Aug 2006 16:48:15 +0000 Subject: [PATCH] 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 --- .../activemq/command/ConnectionInfo.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java b/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java index 7db3f19940..537596c16c 100755 --- a/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java +++ b/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java @@ -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; + } }