directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 56439 - incubator/directory/seda/trunk/src/java/org/apache/seda/protocol
Date Tue, 02 Nov 2004 23:28:54 GMT
Author: akarasulu
Date: Tue Nov  2 15:28:50 2004
New Revision: 56439

Modified:
   incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/DefaultRequestProcessor.java
   incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/ProtocolProvider.java
Log:
added client key to signature to get a handler

Modified: incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/DefaultRequestProcessor.java
==============================================================================
--- incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/DefaultRequestProcessor.java
(original)
+++ incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/DefaultRequestProcessor.java
Tue Nov  2 15:28:50 2004
@@ -126,7 +126,7 @@
         }
 
         ProtocolProvider proto = (ProtocolProvider) protocols.get(name);
-        return proto.getHandler(request);
+        return proto.getHandler(key, request);
     }
 
     /**

Modified: incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/ProtocolProvider.java
==============================================================================
--- incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/ProtocolProvider.java
(original)
+++ incubator/directory/seda/trunk/src/java/org/apache/seda/protocol/ProtocolProvider.java
Tue Nov  2 15:28:50 2004
@@ -18,6 +18,7 @@
 
 import org.apache.commons.codec.stateful.DecoderFactory;
 import org.apache.commons.codec.stateful.EncoderFactory;
+import org.apache.seda.listener.ClientKey;
 
 
 /**
@@ -54,8 +55,9 @@
     /**
      * Gets a protocol specific handler for an request object.
      *
+     * @param key the unique key of the client making the request
      * @param request the protocol request to handle
      * @return the protocol request handler for the request object
      */
-    RequestHandler getHandler(Object request);
+    RequestHandler getHandler(ClientKey key, Object request);
 }

Mime
View raw message