directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r355096 - /directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindResponseImpl.java
Date Thu, 08 Dec 2005 14:08:12 GMT
Author: elecharny
Date: Thu Dec  8 06:08:07 2005
New Revision: 355096

URL: http://svn.apache.org/viewcvs?rev=355096&view=rev
Log:
Added a toString() method

Modified:
    directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindResponseImpl.java

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindResponseImpl.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindResponseImpl.java?rev=355096&r1=355095&r2=355096&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindResponseImpl.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/BindResponseImpl.java
Thu Dec  8 06:08:07 2005
@@ -129,4 +129,26 @@
 
         return true;
     }
+    
+
+    /**
+     * Get a String representation of a BindResponse
+     *
+     * @return A BindResponse String 
+     */
+    public String toString()
+    {
+        StringBuffer sb = new StringBuffer();
+
+        sb.append( "    BindResponse\n" );
+        sb.append( super.toString() );
+        
+        if ( serverSaslCreds != null )
+        {
+            sb.append( "        Server sasl credentials : '" ).append( serverSaslCreds.toString()
).append( "'\n" );
+        }
+
+        return sb.toString();
+    }
+    
 }



Mime
View raw message