directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r713744 - /directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/LdapRequestHandler.java
Date Thu, 13 Nov 2008 15:57:07 GMT
Author: elecharny
Date: Thu Nov 13 07:57:07 2008
New Revision: 713744

URL: http://svn.apache.org/viewvc?rev=713744&view=rev
Log:
Modified the class to fit the MINA API change : we don't get called on messageReceived(),
but on messageHandle()

Modified:
    directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/LdapRequestHandler.java

Modified: directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/LdapRequestHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/LdapRequestHandler.java?rev=713744&r1=713743&r2=713744&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/LdapRequestHandler.java
(original)
+++ directory/apacheds/branches/apacheds-mina2/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/LdapRequestHandler.java
Thu Nov 13 07:57:07 2008
@@ -118,19 +118,11 @@
     }
 
 
-    /**
-     * Handle a LDAP message received during a session.
-     * 
-     * @param session the user session created when the user first connected
-     * to the server
-     * @param message the LDAP message received. Can be any of the LDAP Request
-     * @throws Exception the thrown exception if something went wrong during 
-     * the message processing
-     */
-    public final void messageReceived( IoSession session, T message ) throws Exception
+    public final void handleMessage( IoSession session, T message ) throws Exception
     {
         LdapSession ldapSession = ldapService.getLdapSessionManager().getLdapSession( session
);
         
+        //handle( ldapSession, message );
         // TODO - session you get from LdapService should have the ldapService 
         // member already set no?  Should remove these lines where ever they
         // may be if that's the case.
@@ -197,19 +189,6 @@
             return;
         }
     }
-
-    
-    public final void handleMessage( IoSession session, T message ) throws Exception
-    {
-        LdapSession ldapSession = ldapService.getLdapSessionManager().getLdapSession( session
);
-        
-        // TODO - session you get from LdapService should have the ldapService 
-        // member already set no?  Should remove these lines where ever they
-        // may be if that's the case.
-        ldapSession.setLdapServer( ldapService );
-        
-        handle( ldapSession, message );
-    }
     
     /**
      * Handle a Ldap message associated with a session



Mime
View raw message