You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2012/06/10 16:59:59 UTC

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

Author: olegk
Date: Sun Jun 10 14:59:59 2012
New Revision: 1348608

URL: http://svn.apache.org/viewvc?rev=1348608&view=rev
Log:
Fixed paragraph overflow in PDF version of the tutorial

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=1348608&r1=1348607&r2=1348608&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml (original)
+++ httpcomponents/httpcore/trunk/src/docbkx/nio-ext.xml Sun Jun 10 14:59:59 2012
@@ -1193,7 +1193,8 @@ HttpAsyncService protocolHandler = new H
         params);
 NHttpConnectionFactory<DefaultNHttpServerConnection> connFactory;
 // Initialize HTTP connection factory
-IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch(protocolHandler, connFactory);
+IOEventDispatch ioEventDispatch = new DefaultHttpServerIODispatch(
+    protocolHandler, connFactory);
 ]]></programlisting>
             <section>
                 <title>Non-blocking HTTP request handlers</title>
@@ -1207,7 +1208,7 @@ IOEventDispatch ioEventDispatch = new De
                 request.
                 </para>
                 <programlisting><![CDATA[
-HttpAsyncRequestHandler<HttpRequest> myHandler = new HttpAsyncRequestHandler<HttpRequest>() {
+HttpAsyncRequestHandler<HttpRequest> rh = new HttpAsyncRequestHandler<HttpRequest>() {
 
     public HttpAsyncRequestConsumer<HttpRequest> processRequest(
             final HttpRequest request,
@@ -1313,7 +1314,7 @@ HttpAsyncRequestHandler<HttpRequest> myH
                     </listitem>
                 </itemizedlist>
                 <programlisting><![CDATA[
-HttpAsyncRequestHandler<HttpRequest> myHandler = new HttpAsyncRequestHandler<HttpRequest>() {
+HttpAsyncRequestHandler<HttpRequest> rh = new HttpAsyncRequestHandler<HttpRequest>() {
 
     public HttpAsyncRequestConsumer<HttpRequest> processRequest(
             final HttpRequest request,
@@ -1595,10 +1596,10 @@ handlerReqistry.register("*", myRequestH
             HttpAsyncRequestExecutionHandler#isDone()</methodname> method returns <code>true</code>.
             </para>
             <programlisting><![CDATA[
-HttpAsyncRequestExecutor protocolHandler = new HttpAsyncRequestExecutor();
+HttpAsyncRequestExecutor ph = new HttpAsyncRequestExecutor();
 NHttpConnectionFactory<DefaultNHttpClientConnection> connFactory;
 // Initialize HTTP connection factory
-IOEventDispatch ioEventDispatch = new DefaultHttpClientIODispatch(protocolHandler, connFactory);
+IOEventDispatch ioEventDispatch = new DefaultHttpClientIODispatch(ph, connFactory);
 ]]></programlisting>
             <para>
             The <classname>HttpAsyncRequester</classname> utility class can be used to abstract