You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2005/12/06 04:13:00 UTC
svn commit: r354265 -
/directory/network/trunk/src/java/org/apache/mina/handler/chain/Command.java
Author: trustin
Date: Mon Dec 5 19:12:56 2005
New Revision: 354265
URL: http://svn.apache.org/viewcvs?rev=354265&view=rev
Log:
Fixed some JavaDoc errors.
Modified:
directory/network/trunk/src/java/org/apache/mina/handler/chain/Command.java
Modified: directory/network/trunk/src/java/org/apache/mina/handler/chain/Command.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/handler/chain/Command.java?rev=354265&r1=354264&r2=354265&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/handler/chain/Command.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/handler/chain/Command.java Mon Dec 5 19:12:56 2005
@@ -21,10 +21,11 @@
/**
* <p>A {@link Command} encapsulates a unit of processing work to be
* performed, whose purpose is to examine and/or modify the state of a
- * transaction that is represented by a {@link Context}. Individual
- * {@link Command}s can be assembled into a {@link Chain}, which allows
- * them to either complete the required processing or delegate further
- * processing to the next {@link Command} in the {@link Chain}.</p>
+ * transaction that is represented by custom attributes provided by
+ * {@link IoSession}. Individual {@link Command}s can be assembled into
+ * a {@link CommandChain}, which allows them to either complete the
+ * required processing or delegate further processing to the next
+ * {@link Command} in the {@link CommandChain}.</p>
*
* <p>{@link Command} implementations typically retrieve and store state
* information in the {@link IoSession} that is passed as a parameter to
@@ -57,7 +58,7 @@
* would be executed by calling:</p>
*
* <pre>
- * String input = (String) context.get(getInputKey());
+ * String input = (String) session.getAttribute(getInputKey());
* </pre>
*
* <p>instead of hard coding the attribute name. The use of the "Key"
@@ -74,11 +75,11 @@
* <p>Execute a unit of processing work to be performed. This
* {@link Command} may either complete the required processing
* and just return to stop the processing, or delegate remaining
- * processing to the next {@link Command} in a {@link Chain}
+ * processing to the next {@link Command} in a {@link CommandChain}
* containing this {@link Command} by calling
* {@link NextCommand#execute(IoSession,Object)}.
*
- * @param next an indirect referenct to the next {@link Command} that
+ * @param next an indirect reference to the next {@link Command} that
* provides a way to forward the request to the next {@link Command}.
* @param session the {@link IoSession} which is associated with
* this request