THRIFT-1053. Provide a getUnderlyingTransport function for TSaslTransport
authorTodd Lipcon <todd@apache.org>
Sun, 6 Feb 2011 18:13:10 +0000 (18:13 +0000)
committerTodd Lipcon <todd@apache.org>
Sun, 6 Feb 2011 18:13:10 +0000 (18:13 +0000)
Patch: Devaraj Das

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1067719 13f79535-47bb-0310-9956-ffa450edef68

lib/java/src/org/apache/thrift/transport/TSaslTransport.java

index 8348234..515b09b 100644 (file)
@@ -314,6 +314,14 @@ abstract class TSaslTransport extends TTransport {
     return sasl.saslClient;
   }
 
+  /**
+   * Get the underlying transport that Sasl is using.
+   * @return The <code>TTransport</code> transport
+   */
+   public TTransport getUnderlyingTransport() {
+     return underlyingTransport;
+   }
+
   /**
    * Get the underlying <code>SaslServer</code>.
    *