activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r430823 - /incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java
Date Fri, 11 Aug 2006 16:48:15 GMT
Author: chirino
Date: Fri Aug 11 09:48:15 2006
New Revision: 430823

URL: http://svn.apache.org/viewvc?rev=430823&view=rev
Log:
Adding a transport context variable.. see: http://www.nabble.com/Where-to-add-new-SSL-BrokerService-functionality-tf2088221.html

Modified:
    incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java

Modified: incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java
URL: http://svn.apache.org/viewvc/incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java?rev=430823&r1=430822&r2=430823&view=diff
==============================================================================
--- incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java
(original)
+++ incubator/activemq/branches/activemq-4.0/activemq-core/src/main/java/org/apache/activemq/command/ConnectionInfo.java
Fri Aug 11 09:48:15 2006
@@ -36,6 +36,7 @@
     protected BrokerId[] brokerPath;
     protected boolean brokerMasterConnector;
     protected boolean manageable;
+    protected transient Object transportContext; 
     
     public ConnectionInfo() {        
     }    
@@ -142,5 +143,27 @@
     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;
+	}
 
 }



Mime
View raw message