directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 43439 - incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol
Date Tue, 07 Sep 2004 00:20:54 GMT
Author: akarasulu
Date: Mon Sep  6 17:20:54 2004
New Revision: 43439

Added:
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/ProtocolProvider.java
      - copied, changed from rev 43404, incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/InetServiceProvider.java
Removed:
   incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/InetServiceProvider.java
Log:
renaming the InetServiceProvider to ProtocolProvider

Copied: incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/ProtocolProvider.java
(from rev 43404, incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/InetServiceProvider.java)
==============================================================================
--- incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/InetServiceProvider.java
(original)
+++ incubator/directory/seda/trunk/api/src/java/org/apache/seda/protocol/ProtocolProvider.java
Mon Sep  6 17:20:54 2004
@@ -17,8 +17,8 @@
 package org.apache.seda.protocol;
 
 
-import org.apache.commons.codec.stateful.StatefulDecoder;
-import org.apache.commons.codec.stateful.StatefulEncoder;
+import org.apache.commons.codec.stateful.DecoderFactory;
+import org.apache.commons.codec.stateful.EncoderFactory;
 
 
 /**
@@ -27,7 +27,7 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org"> Apache Directory Project</a>
  * @version $Rev$
  */
-public interface InetServiceProvider
+public interface ProtocolProvider
 {
     /**
      * Gets the authoritative name for the service of this provider.
@@ -37,11 +37,26 @@
     String getName();
 
     /**
-     * Factory method
+     * Gets a factory used to create a new StatefulDecoder for this service's
+     * protocol.
      * 
-     * @return
+     * @return a new StatefulDecoder for this service's protocol
      */
-    StatefulDecoder newDecoder();
-    StatefulEncoder newEncoder();
-    RequestHandler getHandler( Object obj );
+    DecoderFactory getDecoderFactory();
+
+    /**
+     * Gets a factory used to create a new StatefulEncoder for this service's
+     * protocol.
+     *
+     * @return a new StatefulEncoder for this service's protocol
+     */
+    EncoderFactory getEncoderFactory();
+
+    /**
+     * Gets a protocol specific handler for an request object.
+     *
+     * @param request the protocol request to handle
+     * @return the protocol request handler for the request object
+     */
+    RequestHandler getHandler( Object request );
 }

Mime
View raw message