You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2011/01/31 23:04:45 UTC
svn commit: r1065821 -
/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchRequestDecorator.java
Author: elecharny
Date: Mon Jan 31 22:04:44 2011
New Revision: 1065821
URL: http://svn.apache.org/viewvc?rev=1065821&view=rev
Log:
Remove dthe useless toString() method
Modified:
directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchRequestDecorator.java
Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchRequestDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchRequestDecorator.java?rev=1065821&r1=1065820&r2=1065821&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchRequestDecorator.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/decorators/SearchRequestDecorator.java Mon Jan 31 22:04:44 2011
@@ -763,129 +763,9 @@ public class SearchRequestDecorator exte
}
- /**
- * Return a string the represent a SearchRequest
- * {@inheritDoc}
- */
- public String toString()
- {
- StringBuilder sb = new StringBuilder();
-
- sb.append( " SearchRequest\n" );
- sb.append( " baseDn : '" ).append( getDecorated().getBase() ).append( "'\n" );
-
- if ( currentFilter != null )
- {
- sb.append( " filter : '" );
- sb.append( currentFilter.toString() );
- sb.append( "'\n" );
- }
-
- sb.append( " scope : " );
-
- switch ( getDecorated().getScope() )
- {
- case OBJECT:
- sb.append( "base object" );
- break;
-
- case ONELEVEL:
- sb.append( "single level" );
- break;
-
- case SUBTREE:
- sb.append( "whole subtree" );
- break;
- }
-
- sb.append( '\n' );
-
- sb.append( " typesOnly : " ).append( getDecorated().getTypesOnly() ).append( '\n' );
-
- sb.append( " Size Limit : " );
-
- if ( getDecorated().getSizeLimit() == 0L )
- {
- sb.append( "no limit" );
- }
- else
- {
- sb.append( getDecorated().getSizeLimit() );
- }
-
- sb.append( '\n' );
-
- sb.append( " Time Limit : " );
-
- if ( getDecorated().getTimeLimit() == 0 )
- {
- sb.append( "no limit" );
- }
- else
- {
- sb.append( getDecorated().getTimeLimit() );
- }
-
- sb.append( '\n' );
-
- sb.append( " Deref Aliases : " );
-
- switch ( getDecorated().getDerefAliases() )
- {
- case NEVER_DEREF_ALIASES:
- sb.append( "never Deref Aliases" );
- break;
-
- case DEREF_IN_SEARCHING:
- sb.append( "deref In Searching" );
- break;
-
- case DEREF_FINDING_BASE_OBJ:
- sb.append( "deref Finding Base Obj" );
- break;
-
- case DEREF_ALWAYS:
- sb.append( "deref Always" );
- break;
- }
-
- sb.append( '\n' );
- sb.append( " attributes : " );
-
- boolean isFirst = true;
-
- List<String> attributes = getDecorated().getAttributes();
- if ( attributes != null )
- {
- for ( String attribute : attributes )
- {
- if ( isFirst )
- {
- isFirst = false;
- }
- else
- {
- sb.append(", ");
- }
-
- sb.append('\'').append(attribute).append('\'');
- }
- }
-
- sb.append( '\n' );
-
- // The controls
- sb.append( super.toString() );
-
- return sb.toString();
- }
-
-
//-------------------------------------------------------------------------
// The SearchRequest methods
//-------------------------------------------------------------------------
-
-
/**
* {@inheritDoc}
*/