directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r124955 - in incubator/directory/network/trunk/mina/src/java/org/apache/mina: io protocol protocol/io
Date Wed, 12 Jan 2005 09:05:43 GMT
Author: trustin
Date: Wed Jan 12 01:05:41 2005
New Revision: 124955

URL: http://svn.apache.org/viewcvs?view=rev&rev=124955
Log:
 * Fixed JavaDoc
Modified:
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoAcceptor.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoConnector.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolAcceptor.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolConnector.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolHandlerFilter.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolAcceptor.java
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolConnector.java

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoAcceptor.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoAcceptor.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoAcceptor.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoAcceptor.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoAcceptor.java	(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoAcceptor.java	Wed
Jan 12 01:05:41 2005
@@ -33,7 +33,7 @@
  * connections, and then events for incoming connections will be sent to
  * the specified default {@link IoHandler}.
  * <p>
- * Threads accepts incoming connections start automatically when
+ * Threads accept incoming connections start automatically when
  * {@link #bind(SocketAddress, IoHandler)} is invoked, and stop when all
  * addresses are unbound.
  * <p>

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoConnector.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoConnector.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoConnector.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoConnector.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoConnector.java	(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/io/IoConnector.java	Wed
Jan 12 01:05:41 2005
@@ -33,7 +33,7 @@
  * and then events for incoming connections will be sent to the specified
  * default {@link IoHandler}.
  * <p>
- * Threads connects to endpoint start automatically when
+ * Threads connect to endpoint start automatically when
  * {@link #connect(SocketAddress, IoHandler)} is invoked, and stop when all
  * connection attempts are finished.
  * <p>

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolAcceptor.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolAcceptor.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolAcceptor.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolAcceptor.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolAcceptor.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolAcceptor.java
Wed Jan 12 01:05:41 2005
@@ -33,7 +33,7 @@
  * connections, and then events for incoming connections will be sent to
  * the specified default {@link ProtocolHandler}.
  * <p>
- * Threads accepts incoming connections start automatically when
+ * Threads accept incoming connections start automatically when
  * {@link #bind(SocketAddress, ProtocolProvider)} is invoked, and stop when all
  * addresses are unbound.
  * <p>

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolConnector.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolConnector.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolConnector.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolConnector.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolConnector.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolConnector.java
Wed Jan 12 01:05:41 2005
@@ -33,7 +33,7 @@
  * and then events for incoming connections will be sent to the
  * {@link ProtocolHandler} of the specified {@link ProtocolProvider}.
  * <p>
- * Threads connects to endpoint start automatically when
+ * Threads connect to endpoint start automatically when
  * {@link #connect(SocketAddress, ProtocolProvider)} is invoked, and stop when
  * all connection attempts are finished.
  * <p>

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolHandlerFilter.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolHandlerFilter.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolHandlerFilter.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolHandlerFilter.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolHandlerFilter.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/ProtocolHandlerFilter.java
Wed Jan 12 01:05:41 2005
@@ -18,7 +18,6 @@
  */
 package org.apache.mina.protocol;
 
-import org.apache.mina.common.ByteBuffer;
 import org.apache.mina.common.IdleStatus;
 
 /**
@@ -36,7 +35,7 @@
  * <strong>Please NEVER implement your filters to wrap
  * {@link ProtocolSession}s.</strong> Users can cache the reference to the
  * session, which might malfunction if any filters are added or removed later.
- * Please implement {@link #filterWrite(ByteBuffer)} method to override
+ * Please implement {@link #filterWrite(Object)} method to override
  * {@link ProtocolSession#write(Object)} method.
  * 
  * @author Trustin Lee (trustin@apache.org)

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
Wed Jan 12 01:05:41 2005
@@ -24,10 +24,7 @@
 import org.apache.mina.common.IdleStatus;
 import org.apache.mina.common.SessionConfig;
 import org.apache.mina.common.TransportType;
-import org.apache.mina.io.IoAcceptor;
-import org.apache.mina.io.IoConnector;
 import org.apache.mina.io.IoHandler;
-import org.apache.mina.io.IoHandlerFilter;
 import org.apache.mina.io.IoSession;
 import org.apache.mina.protocol.ProtocolCodecFactory;
 import org.apache.mina.protocol.ProtocolDecoder;
@@ -44,26 +41,13 @@
 import org.apache.mina.util.ProtocolHandlerFilterManager.WriteCommand;
 
 /**
- * Adapts the specified {@link ProtocolProvider} to {@link IoHandler}.  This is
- * a bridge between I/O layer and Protocol layer.  Protocol layer itself cannot
- * do any real I/O, but it translates I/O events to more higher level ones
- * and vice versa.  So you need to convert your {@link ProtocolProvider} into
- * {@link IoHandler} using this class to do I/O:
- * <pre>
- * IoAdapter adapter = new IoAdapter();
- * adapter.addFilter(...); // add your favorite ProtocolHandlerFilter
- * IoHandler handler = adapter.adapt(new MyProtocolHandler()); // adapt
- * 
- * acceptor.bind(new InetSocketAddress(...), handler);
- * </pre>
+ * Adapts the specified {@link ProtocolProvider} to {@link IoHandler}.
+ * This class is used by {@link IoProtocolAcceptor} and {@link IoProtocolConnector}
+ * internally.
  * <p>
- * Please refer to more realistic
- * <a href="../../../../../xref-examples/org/apache/mina/examples/reverser/Main.html">Reverser</a>
- * example.
- * <p>
- * {@link IoAdapter} supports protocol-level filters like {@link IoAcceptor}s and
- * {@link IoConnector}s.  It is the same with {@link IoHandlerFilter} and Servlet
- * filters and effective immediately.
+ * It is a bridge between I/O layer and Protocol layer.  Protocol layer itself
+ * cannot do any real I/O, but it translates I/O events to more higher level
+ * ones and vice versa.
  * 
  * @author Trustin Lee (trustin@apache.org)
  * @version $Rev$, $Date$

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolAcceptor.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolAcceptor.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolAcceptor.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolAcceptor.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolAcceptor.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolAcceptor.java
Wed Jan 12 01:05:41 2005
@@ -36,7 +36,7 @@
     }
 
     /**
-     * Returns a underlying {@link IoAcceptor} instance this acceptor is
+     * Returns the underlying {@link IoAcceptor} instance this acceptor is
      * wrapping.
      */
     public IoAcceptor getIoAcceptor()

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolConnector.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolConnector.java?view=diff&rev=124955&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolConnector.java&r1=124954&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolConnector.java&r2=124955
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolConnector.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoProtocolConnector.java
Wed Jan 12 01:05:41 2005
@@ -37,7 +37,7 @@
     }
 
     /**
-     * Returns a underlying {@link IoConnector} instance this acceptor is
+     * Returns the underlying {@link IoConnector} instance this acceptor is
      * wrapping.
      */
     public IoConnector getIoConnector()

Mime
View raw message