directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r124951 - in incubator/directory/network/trunk/mina/src/java/org/apache/mina: io protocol protocol/vmpipe
Date Wed, 12 Jan 2005 07:40:38 GMT
Author: trustin
Date: Tue Jan 11 23:40:28 2005
New Revision: 124951

URL: http://svn.apache.org/viewcvs?view=rev&rev=124951
Log:
 * Revised JavaDoc
 * Added VmPipeConnector.add/removeFilter
Modified:
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Acceptor.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Connector.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/IoAdapter.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Acceptor.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Acceptor.java?view=diff&rev=124951&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Acceptor.java&r1=124950&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Acceptor.java&r2=124951
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Acceptor.java	(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Acceptor.java	Tue Jan
11 23:40:28 2005
@@ -65,7 +65,8 @@
 
     /**
      * Adds the specified filter with the specified priority.  Greater priority
-     * value, higher priority, and thus evaluated more earlier.
+     * value, higher priority, and thus evaluated more earlier.  Please note
+     * that priority value must be unique.
      */
     void addFilter( int priority, IoHandlerFilter filter );
 

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Connector.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Connector.java?view=diff&rev=124951&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Connector.java&r1=124950&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Connector.java&r2=124951
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Connector.java	(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/Connector.java	Tue
Jan 11 23:40:28 2005
@@ -71,7 +71,8 @@
 
     /**
      * Adds the specified filter with the specified priority.  Greater priority
-     * value, higher priority, and thus evaluated more earlier.
+     * value, higher priority, and thus evaluated more earlier.  Please note
+     * that priority value must be unique.
      */
     void addFilter( int priority, IoHandlerFilter filter );
 

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/IoAdapter.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/IoAdapter.java?view=diff&rev=124951&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/IoAdapter.java&r1=124950&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/IoAdapter.java&r2=124951
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/IoAdapter.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/IoAdapter.java
Tue Jan 11 23:40:28 2005
@@ -70,7 +70,8 @@
 
     /**
      * Adds the specified filter with the specified priority.  Greater priority
-     * value, higher priority, and thus evaluated more earlier.
+     * value, higher priority, and thus evaluated more earlier.  Please note
+     * that priority value must be unique.
      */
     public void addFilter( int priority, ProtocolHandlerFilter filter )
     {

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java?view=diff&rev=124951&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java&r1=124950&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java&r2=124951
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/vmpipe/VmPipeConnector.java
Tue Jan 11 23:40:28 2005
@@ -6,6 +6,7 @@
 import java.io.IOException;
 
 import org.apache.mina.protocol.ProtocolHandler;
+import org.apache.mina.protocol.ProtocolHandlerFilter;
 import org.apache.mina.protocol.ProtocolSession;
 import org.apache.mina.protocol.vmpipe.VmPipeAcceptor.Entry;
 import org.apache.mina.util.ProtocolHandlerFilterManager;
@@ -27,6 +28,24 @@
     public VmPipeConnector()
     {
         filterManager.addFilter( Integer.MIN_VALUE, new VmPipeFilter() );
+    }
+
+    /**
+     * Adds the specified filter with the specified priority.  Greater priority
+     * value, higher priority, and thus evaluated more earlier.  Please note
+     * that priority value must be unique.
+     */
+    public void addFilter( int priority, ProtocolHandlerFilter filter )
+    {
+        filterManager.addFilter( priority, filter );
+    }
+
+    /**
+     * Removes the specified filter from the filter list.
+     */
+    public void removeFilter( ProtocolHandlerFilter filter )
+    {
+        filterManager.removeFilter( filter );
     }
 
     /**

Mime
View raw message