directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r365744 - /directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
Date Tue, 03 Jan 2006 20:54:01 GMT
Author: akarasulu
Date: Tue Jan  3 12:54:00 2006
New Revision: 365744

URL: http://svn.apache.org/viewcvs?rev=365744&view=rev
Log:
added toString() for debugging

Modified:
    directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java

Modified: directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
URL: http://svn.apache.org/viewcvs/directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java?rev=365744&r1=365743&r2=365744&view=diff
==============================================================================
--- directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
(original)
+++ directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
Tue Jan  3 12:54:00 2006
@@ -1,16 +1,13 @@
 package org.apache.ldap.common.asn1.pojo.psearch;
 
-import java.nio.BufferOverflowException;
 import java.nio.ByteBuffer;
-import java.util.Iterator;
 
 import org.apache.asn1.Asn1Object;
 import org.apache.asn1.ber.tlv.Length;
 import org.apache.asn1.ber.tlv.UniversalTag;
 import org.apache.asn1.ber.tlv.Value;
 import org.apache.asn1.codec.EncoderException;
-import org.apache.ldap.common.asn1.codec.LdapConstants;
-import org.apache.ldap.common.asn1.pojo.Control;
+import org.apache.ldap.common.util.StringTools;
 
 
 public class PSearchControl extends Asn1Object
@@ -116,5 +113,21 @@
         Value.encode( bb, changesOnly );
         Value.encode( bb, returnECs );
         return bb;
+    }
+
+
+    /**
+     * Return a String representing this PSearchControl.
+     */
+    public String toString()
+    {
+        StringBuffer sb = new StringBuffer();
+        
+        sb.append("    Persistant Search Control\n");
+        sb.append("        changeTypes : '").append( changeTypes ).append("'\n");
+        sb.append("        changesOnly : '").append( changesOnly ).append( "'\n") ;
+        sb.append("        returnECs   : '").append( returnECs ).append( "'\n") ;
+        
+        return sb.toString();
     }
 }



Mime
View raw message