You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2010/12/10 02:36:18 UTC

svn commit: r1044191 - /httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml

Author: sebb
Date: Fri Dec 10 01:36:17 2010
New Revision: 1044191

URL: http://svn.apache.org/viewvc?rev=1044191&view=rev
Log:
HTTPCORE-245 Typos in HttpCore Manual

Modified:
    httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml

Modified: httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml?rev=1044191&r1=1044190&r2=1044191&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml (original)
+++ httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml Fri Dec 10 01:36:17 2010
@@ -80,7 +80,7 @@
         reactors is to react to I/O events and to dispatch event notifications to individual I/O 
         sessions. The main idea of I/O reactor pattern is to break away from the one thread per 
         connection model imposed by the classic blocking I/O model. The <interfacename>IOReactor
-        </interfacename> interface represents an abstract object implementing the Reactor pattern. 
+        </interfacename> interface represents an abstract object which implements the Reactor pattern. 
         Internally, <interfacename>IOReactor</interfacename> implementations encapsulate 
         functionality of the NIO <classname>java.nio.channels.Selector</classname>.
         </para>
@@ -711,10 +711,9 @@ ByteBuffer src = ByteBuffer.allocate(204
 encoder.write(src);
 // Mark content entity as fully transferred when done
 encoder.complete();
-}
 ]]></programlisting>
             <para>
-            Please note, one still has to provide an !HttpEntity instance when submitting an entity 
+            Please note, one still has to provide an HttpEntity instance when submitting an entity 
             enclosing message to the non-blocking HTTP connection. Properties of that entity will 
             be used to initialize an <interfacename>ContentEncoder</interfacename> instance to be 
             used for transferring entity content. Non-blocking HTTP connections, however, ignore 
@@ -866,7 +865,7 @@ if (encoder instanceof FileContentEncode
                 <formalpara>
                 <title><methodname>connected</methodname>:</title>
                 <para>
-                Triggered when a when a new incoming connection has been created.
+                Triggered when a new incoming connection has been created.
                 </para>
                 </formalpara>
             </listitem>
@@ -923,15 +922,6 @@ if (encoder instanceof FileContentEncode
             </listitem>
             <listitem>
                 <formalpara>
-                <title><methodname>exception</methodname>:</title>
-                <para>
-                Triggered when an I/O error occurrs while reading from or writing to the underlying 
-                channel or when an HTTP protocol violation occurs while receiving an HTTP request.
-                </para>
-                </formalpara>
-            </listitem>
-            <listitem>
-                <formalpara>
                 <title><methodname>timeout</methodname>:</title>
                 <para>
                 Triggered when no input is detected on this connection over the maximum period of 
@@ -1016,15 +1006,6 @@ if (encoder instanceof FileContentEncode
             </listitem>
             <listitem>
                 <formalpara>
-                <title><methodname>exception</methodname>:</title>
-                <para>
-                Triggered when an I/O error occurrs while reading from or writing to the underlying 
-                channel or when an HTTP protocol violation occurs while receiving an HTTP request.
-                </para>
-                </formalpara>
-            </listitem>
-            <listitem>
-                <formalpara>
                 <title><methodname>timeout</methodname>:</title>
                 <para>
                 Triggered when no input is detected on this connection over the maximum period of 
@@ -1123,7 +1104,7 @@ if (encoder instanceof FileContentEncode
                 <title><classname>ConsumingNHttpEntityTemplate</classname></title>
                 <para>
                 <classname>ConsumingNHttpEntityTemplate</classname> is a subclass of <classname>
-                HttpEntityWrapper</classname> that that decorates the incoming HTTP entity and 
+                HttpEntityWrapper</classname> that decorates the incoming HTTP entity and 
                 delegates the handling of incoming content to a <interfacename>ContentListener
                 </interfacename> instance.
                 </para>
@@ -1498,13 +1479,6 @@ handler.setHandlerResolver(handlerResolv
             </methodname>method is called to process the response. 
             </para>
             <para>
-            If incoming responses enclose a content entity, <interfacename>
-            NHttpRequestExecutionHandler</interfacename> is expected to return a <interfacename>
-            ConsumingNHttpEntity</interfacename> for reading the content. After the entity is 
-            finished reading the data, <methodname>NHttpRequestExecutionHandler#handleResponse()
-            </methodname>method is called to process the response. 
-            </para>
-            <para>
             <classname>AsyncNHttpClientHandler</classname> relies on <interfacename>HttpProcessor
             </interfacename>to generate mandatory protocol headers for all outgoing messages and 
             apply common, cross-cutting message transformations to all incoming and outgoing 
@@ -1533,7 +1507,7 @@ AsyncNHttpClientHandler handler = new As
                 HTTP response. 
                 </para>
                 <para>
-                HTTP request execution exents as defined by the <interfacename>
+                HTTP request execution events as defined by the <interfacename>
                 NHttpRequestExecutionHandler</interfacename> interface:
                 </para>
                 <itemizedlist>