directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r536643 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
Date Wed, 09 May 2007 20:05:56 GMT
Author: elecharny
Date: Wed May  9 13:05:56 2007
New Revision: 536643

URL: http://svn.apache.org/viewvc?view=rev&rev=536643
Log:
Used the StringTools methods like getType() and asciiToLower() methods

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java?view=diff&rev=536643&r1=536642&r2=536643
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapMessageGrammar.java
Wed May  9 13:05:56 2007
@@ -769,7 +769,7 @@
                     }
                     else
                     {
-                        authentication.setMechanism( new String( tlv.getValue().getData()
) );
+                        authentication.setMechanism( StringTools.utf8ToString( tlv.getValue().getData()
) );
                     }
 
                     // We can have an END transition
@@ -1280,7 +1280,7 @@
                     }
                     else
                     {
-                        type = new String( tlv.getValue().getData() );
+                        type = StringTools.getType( tlv.getValue().getData() );
                         searchResultEntry.addAttributeValues( type );
                     }
 
@@ -1661,7 +1661,7 @@
                     }
                     else
                     {
-                        type = new String( tlv.getValue().getData() );
+                        type = StringTools.getType( tlv.getValue().getData() );
                         modifyRequest.addAttributeTypeAndValues( type );
                     }
 
@@ -2014,7 +2014,7 @@
                         throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX,
addRequest.getEntry(), null );
                     }
 
-                    String type = new String( tlv.getValue().getData() );
+                    String type = StringTools.getType( tlv.getValue().getData() );
 
                     addRequest.addAttributeType( type );
 
@@ -2677,7 +2677,7 @@
                         throw new ResponseCarryingException( msg, response, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX,
compareRequest.getEntry(), null );
                     }
 
-                    String type = new String( tlv.getValue().getData() );
+                    String type = StringTools.getType( tlv.getValue().getData() );
                     compareRequest.setAttributeDesc( type );
 
                     if ( IS_DEBUG )
@@ -4953,7 +4953,7 @@
                     }
                     else
                     {
-                        String type = new String( tlv.getValue().getData() );
+                        String type = StringTools.getType( tlv.getValue().getData() );
                         substringFilter.setType( type );
 
                         // We now have to get back to the nearest filter which
@@ -5026,7 +5026,7 @@
                         throw new DecoderException( "The substring initial filter is empty"
);
                     }
 
-                    substringFilter.setInitialSubstrings( new String( tlv.getValue().getData()
) );
+                    substringFilter.setInitialSubstrings( StringTools.utf8ToString( tlv.getValue().getData()
) );
 
                     // We now have to get back to the nearest filter which is
                     // not terminal.
@@ -5959,7 +5959,7 @@
                     }
                     else
                     {
-                        extensibleMatchFilter.setMatchingRule( new String( tlv.getValue().getData()
) );
+                        extensibleMatchFilter.setMatchingRule( StringTools.utf8ToString(
tlv.getValue().getData() ) );
                     }
                 }
             } );



Mime
View raw message