directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r349428 - /directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/AbstractResultResponse.java
Date Mon, 28 Nov 2005 16:53:22 GMT
Author: elecharny
Date: Mon Nov 28 08:53:16 2005
New Revision: 349428

URL: http://svn.apache.org/viewcvs?rev=349428&view=rev
Log:
added a toString method for debugging purpose

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

Modified: directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/AbstractResultResponse.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/AbstractResultResponse.java?rev=349428&r1=349427&r2=349428&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/AbstractResultResponse.java
(original)
+++ directory/shared/ldap/trunk/common/src/main/java/org/apache/ldap/common/message/AbstractResultResponse.java
Mon Nov 28 08:53:16 2005
@@ -128,4 +128,21 @@
 
         return true;
     }
+    
+    /**
+     * Get a String representation of an Response
+     *
+     * @return An Response String 
+     */
+    public String toString()
+    {
+    	if ( result != null )
+    	{
+    		return result.toString();
+    	}
+    	else
+    	{
+    		return "No result";
+    	}
+    }
 }



Mime
View raw message