directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1075078 - /directory/apacheds/branches/akarasulu/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolHandler.java
Date Sun, 27 Feb 2011 15:34:46 GMT
Author: akarasulu
Date: Sun Feb 27 15:34:46 2011
New Revision: 1075078

URL: http://svn.apache.org/viewvc?rev=1075078&view=rev
Log:
delegating ext op instantiation to codec service

Modified:
    directory/apacheds/branches/akarasulu/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolHandler.java

Modified: directory/apacheds/branches/akarasulu/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/akarasulu/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolHandler.java?rev=1075078&r1=1075077&r2=1075078&view=diff
==============================================================================
--- directory/apacheds/branches/akarasulu/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolHandler.java
(original)
+++ directory/apacheds/branches/akarasulu/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolHandler.java
Sun Feb 27 15:34:46 2011
@@ -21,7 +21,6 @@ package org.apache.directory.server.ldap
 
 
 import org.apache.directory.shared.ldap.codec.api.BinaryAttributeDetector;
-import org.apache.directory.shared.ldap.codec.api.ExtendedRequestDecorator;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecServiceFactory;
 import org.apache.directory.shared.ldap.codec.api.MessageDecorator;
 import org.apache.directory.shared.ldap.codec.api.LdapMessageContainer;
@@ -29,8 +28,6 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.model.exception.ResponseCarryingMessageException;
 import org.apache.directory.shared.ldap.model.message.Control;
 import org.apache.directory.shared.ldap.model.message.ExtendedRequest;
-import org.apache.directory.shared.ldap.model.message.ExtendedRequestImpl;
-import org.apache.directory.shared.ldap.model.message.ExtendedResponse;
 import org.apache.directory.shared.ldap.model.message.Message;
 import org.apache.directory.shared.ldap.model.message.Request;
 import org.apache.directory.shared.ldap.model.message.ResultCodeEnum;
@@ -194,18 +191,16 @@ class LdapProtocolHandler extends Demuxi
 
         if ( message == SslFilter.SESSION_SECURED )
         {
-            ExtendedRequestDecorator<ExtendedRequest<ExtendedResponse>, ExtendedResponse>
req = 
-                new ExtendedRequestDecorator( LdapCodecServiceFactory.getSingleton(), new
ExtendedRequestImpl( 0 ) );
-            req.setRequestName( "1.3.6.1.4.1.1466.20037" );
-            req.setRequestValue( "SECURED".getBytes( "ISO-8859-1" ) );
+            ExtendedRequest<?> req = 
+                LdapCodecServiceFactory.getSingleton().newExtendedRequest( "1.3.6.1.4.1.1466.20037",

+                    "SECURED".getBytes( "ISO-8859-1" ) );
             message = req;
         }
         else if ( message == SslFilter.SESSION_UNSECURED )
         {
-            ExtendedRequestDecorator<ExtendedRequest<ExtendedResponse>, ExtendedResponse>
req = 
-                new ExtendedRequestDecorator( LdapCodecServiceFactory.getSingleton(), new
ExtendedRequestImpl( 0 ) );
-            req.setRequestName( "1.3.6.1.4.1.1466.20037" );
-            req.setRequestValue( "UNSECURED".getBytes( "ISO-8859-1" ) );
+            ExtendedRequest<?> req = 
+                LdapCodecServiceFactory.getSingleton().newExtendedRequest( "1.3.6.1.4.1.1466.20037",

+                    "SECURED".getBytes( "ISO-8859-1" ) );
             message = req;
         }
 



Mime
View raw message