hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1750192 [11/18] - in /httpcomponents/site/httpcomponents-asyncclient-4.1.x: ./ httpasyncclient-cache/ httpasyncclient-cache/apidocs/ httpasyncclient-cache/apidocs/org/apache/http/impl/client/cache/ httpasyncclient-cache/apidocs/org/apache/...
Date Sat, 25 Jun 2016 09:37:09 GMT
Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-frame.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-frame.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference Package org.apache.http.localserver</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference Package org.apache.http.localserver</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-summary.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-summary.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/package-summary.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference Package org.apache.http.localserver</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference Package org.apache.http.localserver</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -97,6 +97,6 @@
         	</ul>
       	</div>
 				<hr />
-		Copyright &#169; 2010-2015 The Apache Software Foundation. All Rights Reserved.
+		Copyright &#169; 2010-2016 The Apache Software Foundation. All Rights Reserved.
 	</body>
 </html>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.html Sat Jun 25 09:35:53 2016
@@ -37,43 +37,43 @@
 <a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">package</strong> org.apache.http.nio.client.integration;
 <a class="jxr_linenumber" name="28" href="#28">28</a>  
 <a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.net.UnknownHostException;
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.CountDownLatch;
-<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.ExecutionException;
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.Future;
-<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.TimeUnit;
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.atomic.AtomicBoolean;
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.atomic.AtomicInteger;
-<a class="jxr_linenumber" name="37" href="#37">37</a>  
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpConnection;
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpException;
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpHost;
-<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpRequest;
-<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpResponse;
-<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.methods.HttpGet;
-<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.concurrent.FutureCallback;
-<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.entity.ContentType;
-<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.client.HttpAsyncClients;
-<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.http.localserver.EchoHandler;
-<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.http.localserver.HttpAsyncTestBase;
-<a class="jxr_linenumber" name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> org.apache.http.localserver.RandomHandler;
-<a class="jxr_linenumber" name="50" href="#50">50</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.ContentDecoder;
-<a class="jxr_linenumber" name="51" href="#51">51</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.ContentEncoder;
-<a class="jxr_linenumber" name="52" href="#52">52</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.IOControl;
-<a class="jxr_linenumber" name="53" href="#53">53</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.client.methods.HttpAsyncMethods;
-<a class="jxr_linenumber" name="54" href="#54">54</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.entity.NStringEntity;
-<a class="jxr_linenumber" name="55" href="#55">55</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncRequestConsumer;
-<a class="jxr_linenumber" name="56" href="#56">56</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncRequestHandler;
-<a class="jxr_linenumber" name="57" href="#57">57</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncRequestProducer;
-<a class="jxr_linenumber" name="58" href="#58">58</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncResponseProducer;
-<a class="jxr_linenumber" name="59" href="#59">59</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncExchange;
-<a class="jxr_linenumber" name="60" href="#60">60</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestConsumer;
-<a class="jxr_linenumber" name="61" href="#61">61</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestHandler;
-<a class="jxr_linenumber" name="62" href="#62">62</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestProducer;
-<a class="jxr_linenumber" name="63" href="#63">63</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncResponseConsumer;
-<a class="jxr_linenumber" name="64" href="#64">64</a>  <strong class="jxr_keyword">import</strong> org.apache.http.protocol.HttpContext;
-<a class="jxr_linenumber" name="65" href="#65">65</a>  <strong class="jxr_keyword">import</strong> org.apache.http.protocol.HttpCoreContext;
-<a class="jxr_linenumber" name="66" href="#66">66</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
+<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.CountDownLatch;
+<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.ExecutionException;
+<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.Future;
+<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.TimeUnit;
+<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.atomic.AtomicBoolean;
+<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.atomic.AtomicInteger;
+<a class="jxr_linenumber" name="36" href="#36">36</a>  
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpConnection;
+<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpException;
+<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpHost;
+<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpRequest;
+<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpResponse;
+<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.methods.HttpGet;
+<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.concurrent.FutureCallback;
+<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.entity.ContentType;
+<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.client.HttpAsyncClients;
+<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.localserver.EchoHandler;
+<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.http.localserver.HttpAsyncTestBase;
+<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.http.localserver.RandomHandler;
+<a class="jxr_linenumber" name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.ContentDecoder;
+<a class="jxr_linenumber" name="50" href="#50">50</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.ContentEncoder;
+<a class="jxr_linenumber" name="51" href="#51">51</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.IOControl;
+<a class="jxr_linenumber" name="52" href="#52">52</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.client.methods.HttpAsyncMethods;
+<a class="jxr_linenumber" name="53" href="#53">53</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.entity.NStringEntity;
+<a class="jxr_linenumber" name="54" href="#54">54</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncRequestConsumer;
+<a class="jxr_linenumber" name="55" href="#55">55</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncRequestHandler;
+<a class="jxr_linenumber" name="56" href="#56">56</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncRequestProducer;
+<a class="jxr_linenumber" name="57" href="#57">57</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.BasicAsyncResponseProducer;
+<a class="jxr_linenumber" name="58" href="#58">58</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncExchange;
+<a class="jxr_linenumber" name="59" href="#59">59</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestConsumer;
+<a class="jxr_linenumber" name="60" href="#60">60</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestHandler;
+<a class="jxr_linenumber" name="61" href="#61">61</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestProducer;
+<a class="jxr_linenumber" name="62" href="#62">62</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncResponseConsumer;
+<a class="jxr_linenumber" name="63" href="#63">63</a>  <strong class="jxr_keyword">import</strong> org.apache.http.protocol.HttpContext;
+<a class="jxr_linenumber" name="64" href="#64">64</a>  <strong class="jxr_keyword">import</strong> org.apache.http.protocol.HttpCoreContext;
+<a class="jxr_linenumber" name="65" href="#65">65</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
+<a class="jxr_linenumber" name="66" href="#66">66</a>  <strong class="jxr_keyword">import</strong> org.junit.Ignore;
 <a class="jxr_linenumber" name="67" href="#67">67</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
 <a class="jxr_linenumber" name="68" href="#68">68</a>  
 <a class="jxr_linenumber" name="69" href="#69">69</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.html">TestHttpAsyncPrematureTermination</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../../org/apache/http/localserver/HttpAsyncTestBase.html">HttpAsyncTestBase</a> {
@@ -246,14 +246,14 @@
 <a class="jxr_linenumber" name="236" href="#236">236</a>         Assert.assertTrue(latch.await(5, TimeUnit.SECONDS));
 <a class="jxr_linenumber" name="237" href="#237">237</a>     }
 <a class="jxr_linenumber" name="238" href="#238">238</a> 
-<a class="jxr_linenumber" name="239" href="#239">239</a>     @Test
+<a class="jxr_linenumber" name="239" href="#239">239</a>     @Test @Ignore(value = <span class="jxr_string">"Fails on some Windows platforms"</span>)
 <a class="jxr_linenumber" name="240" href="#240">240</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConnectionRequestFailure() <strong class="jxr_keyword">throws</strong> Exception {
 <a class="jxr_linenumber" name="241" href="#241">241</a>         <strong class="jxr_keyword">this</strong>.httpclient = HttpAsyncClients.custom()
 <a class="jxr_linenumber" name="242" href="#242">242</a>                 .setConnectionManager(<strong class="jxr_keyword">this</strong>.connMgr)
 <a class="jxr_linenumber" name="243" href="#243">243</a>                 .build();
 <a class="jxr_linenumber" name="244" href="#244">244</a>         <strong class="jxr_keyword">this</strong>.httpclient.start();
 <a class="jxr_linenumber" name="245" href="#245">245</a> 
-<a class="jxr_linenumber" name="246" href="#246">246</a>         <strong class="jxr_keyword">final</strong> HttpGet get = <strong class="jxr_keyword">new</strong> HttpGet(<span class="jxr_string">"http://stuff.invalid/"</span>);
+<a class="jxr_linenumber" name="246" href="#246">246</a>         <strong class="jxr_keyword">final</strong> HttpGet get = <strong class="jxr_keyword">new</strong> HttpGet(<span class="jxr_string">"http://0.0.0.0/"</span>);
 <a class="jxr_linenumber" name="247" href="#247">247</a>         <strong class="jxr_keyword">final</strong> HttpAsyncRequestProducer producer = HttpAsyncMethods.create(get);
 <a class="jxr_linenumber" name="248" href="#248">248</a> 
 <a class="jxr_linenumber" name="249" href="#249">249</a>         <strong class="jxr_keyword">final</strong> AtomicBoolean closed = <strong class="jxr_keyword">new</strong> AtomicBoolean(false);
@@ -316,93 +316,94 @@
 <a class="jxr_linenumber" name="306" href="#306">306</a>             future.get();
 <a class="jxr_linenumber" name="307" href="#307">307</a>             Assert.fail();
 <a class="jxr_linenumber" name="308" href="#308">308</a>         } <strong class="jxr_keyword">catch</strong> (ExecutionException e) {
-<a class="jxr_linenumber" name="309" href="#309">309</a>             Assert.assertTrue(e.getCause() instanceof UnknownHostException);
-<a class="jxr_linenumber" name="310" href="#310">310</a>         }
-<a class="jxr_linenumber" name="311" href="#311">311</a>         <strong class="jxr_keyword">this</strong>.connMgr.shutdown(1000);
-<a class="jxr_linenumber" name="312" href="#312">312</a> 
-<a class="jxr_linenumber" name="313" href="#313">313</a>         Assert.assertTrue(closed.get());
-<a class="jxr_linenumber" name="314" href="#314">314</a>         Assert.assertFalse(cancelled.get());
-<a class="jxr_linenumber" name="315" href="#315">315</a>         Assert.assertTrue(failed.get());
-<a class="jxr_linenumber" name="316" href="#316">316</a>     }
-<a class="jxr_linenumber" name="317" href="#317">317</a> 
-<a class="jxr_linenumber" name="318" href="#318">318</a>     @Test
-<a class="jxr_linenumber" name="319" href="#319">319</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConsumerIsDone() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="320" href="#320">320</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap.registerHandler(<span class="jxr_string">"/echo/*"</span>, <strong class="jxr_keyword">new</strong> BasicAsyncRequestHandler(<strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/http/localserver/EchoHandler.html">EchoHandler</a>()));
-<a class="jxr_linenumber" name="321" href="#321">321</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap.registerHandler(<span class="jxr_string">"/random/*"</span>, <strong class="jxr_keyword">new</strong> BasicAsyncRequestHandler(<strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/http/localserver/RandomHandler.html">RandomHandler</a>()));
-<a class="jxr_linenumber" name="322" href="#322">322</a> 
-<a class="jxr_linenumber" name="323" href="#323">323</a>         <strong class="jxr_keyword">final</strong> HttpHost target = start();
-<a class="jxr_linenumber" name="324" href="#324">324</a> 
-<a class="jxr_linenumber" name="325" href="#325">325</a>         <strong class="jxr_keyword">final</strong> AtomicInteger producerClosed = <strong class="jxr_keyword">new</strong> AtomicInteger(0);
-<a class="jxr_linenumber" name="326" href="#326">326</a>         <strong class="jxr_keyword">final</strong> AtomicInteger consumerClosed = <strong class="jxr_keyword">new</strong> AtomicInteger(0);
-<a class="jxr_linenumber" name="327" href="#327">327</a> 
-<a class="jxr_linenumber" name="328" href="#328">328</a>         <strong class="jxr_keyword">final</strong> HttpAsyncRequestProducer producer = <strong class="jxr_keyword">new</strong> BasicAsyncRequestProducer(target, <strong class="jxr_keyword">new</strong> HttpGet(<span class="jxr_string">"/"</span>)) {
-<a class="jxr_linenumber" name="329" href="#329">329</a> 
-<a class="jxr_linenumber" name="330" href="#330">330</a>             @Override
-<a class="jxr_linenumber" name="331" href="#331">331</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> close() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="332" href="#332">332</a>                 producerClosed.incrementAndGet();
-<a class="jxr_linenumber" name="333" href="#333">333</a>                 <strong class="jxr_keyword">super</strong>.close();
-<a class="jxr_linenumber" name="334" href="#334">334</a>             }
-<a class="jxr_linenumber" name="335" href="#335">335</a>         };
-<a class="jxr_linenumber" name="336" href="#336">336</a> 
-<a class="jxr_linenumber" name="337" href="#337">337</a>         <strong class="jxr_keyword">final</strong> HttpAsyncResponseConsumer&lt;?&gt; consumer = <strong class="jxr_keyword">new</strong> HttpAsyncResponseConsumer&lt;Object&gt;() {
-<a class="jxr_linenumber" name="338" href="#338">338</a> 
-<a class="jxr_linenumber" name="339" href="#339">339</a>             @Override
-<a class="jxr_linenumber" name="340" href="#340">340</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> close() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="341" href="#341">341</a>                 consumerClosed.incrementAndGet();
-<a class="jxr_linenumber" name="342" href="#342">342</a>             }
-<a class="jxr_linenumber" name="343" href="#343">343</a> 
-<a class="jxr_linenumber" name="344" href="#344">344</a>             @Override
-<a class="jxr_linenumber" name="345" href="#345">345</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> cancel() {
-<a class="jxr_linenumber" name="346" href="#346">346</a>                 <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="347" href="#347">347</a>             }
-<a class="jxr_linenumber" name="348" href="#348">348</a> 
-<a class="jxr_linenumber" name="349" href="#349">349</a>             @Override
-<a class="jxr_linenumber" name="350" href="#350">350</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> failed(<strong class="jxr_keyword">final</strong> Exception ex) {
-<a class="jxr_linenumber" name="351" href="#351">351</a>             }
-<a class="jxr_linenumber" name="352" href="#352">352</a> 
-<a class="jxr_linenumber" name="353" href="#353">353</a>             @Override
-<a class="jxr_linenumber" name="354" href="#354">354</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> responseReceived(
-<a class="jxr_linenumber" name="355" href="#355">355</a>                     <strong class="jxr_keyword">final</strong> HttpResponse response) <strong class="jxr_keyword">throws</strong> IOException, HttpException {
-<a class="jxr_linenumber" name="356" href="#356">356</a>             }
-<a class="jxr_linenumber" name="357" href="#357">357</a> 
-<a class="jxr_linenumber" name="358" href="#358">358</a>             @Override
-<a class="jxr_linenumber" name="359" href="#359">359</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> consumeContent(
-<a class="jxr_linenumber" name="360" href="#360">360</a>                     <strong class="jxr_keyword">final</strong> ContentDecoder decoder, <strong class="jxr_keyword">final</strong> IOControl ioctrl) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="361" href="#361">361</a>             }
-<a class="jxr_linenumber" name="362" href="#362">362</a> 
-<a class="jxr_linenumber" name="363" href="#363">363</a>             @Override
-<a class="jxr_linenumber" name="364" href="#364">364</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> responseCompleted(<strong class="jxr_keyword">final</strong> HttpContext context) {
-<a class="jxr_linenumber" name="365" href="#365">365</a>             }
-<a class="jxr_linenumber" name="366" href="#366">366</a> 
-<a class="jxr_linenumber" name="367" href="#367">367</a>             @Override
-<a class="jxr_linenumber" name="368" href="#368">368</a>             <strong class="jxr_keyword">public</strong> Exception getException() {
-<a class="jxr_linenumber" name="369" href="#369">369</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="370" href="#370">370</a>             }
-<a class="jxr_linenumber" name="371" href="#371">371</a> 
-<a class="jxr_linenumber" name="372" href="#372">372</a>             @Override
-<a class="jxr_linenumber" name="373" href="#373">373</a>             <strong class="jxr_keyword">public</strong> String getResult() {
-<a class="jxr_linenumber" name="374" href="#374">374</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="375" href="#375">375</a>             }
-<a class="jxr_linenumber" name="376" href="#376">376</a> 
-<a class="jxr_linenumber" name="377" href="#377">377</a>             @Override
-<a class="jxr_linenumber" name="378" href="#378">378</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isDone() {
-<a class="jxr_linenumber" name="379" href="#379">379</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>; <em class="jxr_comment">// cancels fetching the response-body</em>
-<a class="jxr_linenumber" name="380" href="#380">380</a>             }
-<a class="jxr_linenumber" name="381" href="#381">381</a>         };
-<a class="jxr_linenumber" name="382" href="#382">382</a> 
-<a class="jxr_linenumber" name="383" href="#383">383</a>         <strong class="jxr_keyword">final</strong> Future&lt;?&gt; future = <strong class="jxr_keyword">this</strong>.httpclient.execute(producer, consumer, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="384" href="#384">384</a>         future.get();
-<a class="jxr_linenumber" name="385" href="#385">385</a> 
-<a class="jxr_linenumber" name="386" href="#386">386</a>         connMgr.shutdown(1000);
-<a class="jxr_linenumber" name="387" href="#387">387</a> 
-<a class="jxr_linenumber" name="388" href="#388">388</a>         Assert.assertTrue(future.isCancelled());
+<a class="jxr_linenumber" name="309" href="#309">309</a>             <strong class="jxr_keyword">final</strong> Throwable cause = e.getCause();
+<a class="jxr_linenumber" name="310" href="#310">310</a>             Assert.assertTrue(<span class="jxr_string">"Unexpected cause: "</span> + cause, cause instanceof IOException);
+<a class="jxr_linenumber" name="311" href="#311">311</a>         }
+<a class="jxr_linenumber" name="312" href="#312">312</a>         <strong class="jxr_keyword">this</strong>.connMgr.shutdown(1000);
+<a class="jxr_linenumber" name="313" href="#313">313</a> 
+<a class="jxr_linenumber" name="314" href="#314">314</a>         Assert.assertTrue(closed.get());
+<a class="jxr_linenumber" name="315" href="#315">315</a>         Assert.assertFalse(cancelled.get());
+<a class="jxr_linenumber" name="316" href="#316">316</a>         Assert.assertTrue(failed.get());
+<a class="jxr_linenumber" name="317" href="#317">317</a>     }
+<a class="jxr_linenumber" name="318" href="#318">318</a> 
+<a class="jxr_linenumber" name="319" href="#319">319</a>     @Test
+<a class="jxr_linenumber" name="320" href="#320">320</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConsumerIsDone() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="321" href="#321">321</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap.registerHandler(<span class="jxr_string">"/echo/*"</span>, <strong class="jxr_keyword">new</strong> BasicAsyncRequestHandler(<strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/http/localserver/EchoHandler.html">EchoHandler</a>()));
+<a class="jxr_linenumber" name="322" href="#322">322</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap.registerHandler(<span class="jxr_string">"/random/*"</span>, <strong class="jxr_keyword">new</strong> BasicAsyncRequestHandler(<strong class="jxr_keyword">new</strong> <a href="../../../../../../org/apache/http/localserver/RandomHandler.html">RandomHandler</a>()));
+<a class="jxr_linenumber" name="323" href="#323">323</a> 
+<a class="jxr_linenumber" name="324" href="#324">324</a>         <strong class="jxr_keyword">final</strong> HttpHost target = start();
+<a class="jxr_linenumber" name="325" href="#325">325</a> 
+<a class="jxr_linenumber" name="326" href="#326">326</a>         <strong class="jxr_keyword">final</strong> AtomicInteger producerClosed = <strong class="jxr_keyword">new</strong> AtomicInteger(0);
+<a class="jxr_linenumber" name="327" href="#327">327</a>         <strong class="jxr_keyword">final</strong> AtomicInteger consumerClosed = <strong class="jxr_keyword">new</strong> AtomicInteger(0);
+<a class="jxr_linenumber" name="328" href="#328">328</a> 
+<a class="jxr_linenumber" name="329" href="#329">329</a>         <strong class="jxr_keyword">final</strong> HttpAsyncRequestProducer producer = <strong class="jxr_keyword">new</strong> BasicAsyncRequestProducer(target, <strong class="jxr_keyword">new</strong> HttpGet(<span class="jxr_string">"/"</span>)) {
+<a class="jxr_linenumber" name="330" href="#330">330</a> 
+<a class="jxr_linenumber" name="331" href="#331">331</a>             @Override
+<a class="jxr_linenumber" name="332" href="#332">332</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">synchronized</strong> <strong class="jxr_keyword">void</strong> close() <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="333" href="#333">333</a>                 producerClosed.incrementAndGet();
+<a class="jxr_linenumber" name="334" href="#334">334</a>                 <strong class="jxr_keyword">super</strong>.close();
+<a class="jxr_linenumber" name="335" href="#335">335</a>             }
+<a class="jxr_linenumber" name="336" href="#336">336</a>         };
+<a class="jxr_linenumber" name="337" href="#337">337</a> 
+<a class="jxr_linenumber" name="338" href="#338">338</a>         <strong class="jxr_keyword">final</strong> HttpAsyncResponseConsumer&lt;?&gt; consumer = <strong class="jxr_keyword">new</strong> HttpAsyncResponseConsumer&lt;Object&gt;() {
+<a class="jxr_linenumber" name="339" href="#339">339</a> 
+<a class="jxr_linenumber" name="340" href="#340">340</a>             @Override
+<a class="jxr_linenumber" name="341" href="#341">341</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> close() <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="342" href="#342">342</a>                 consumerClosed.incrementAndGet();
+<a class="jxr_linenumber" name="343" href="#343">343</a>             }
+<a class="jxr_linenumber" name="344" href="#344">344</a> 
+<a class="jxr_linenumber" name="345" href="#345">345</a>             @Override
+<a class="jxr_linenumber" name="346" href="#346">346</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> cancel() {
+<a class="jxr_linenumber" name="347" href="#347">347</a>                 <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="348" href="#348">348</a>             }
+<a class="jxr_linenumber" name="349" href="#349">349</a> 
+<a class="jxr_linenumber" name="350" href="#350">350</a>             @Override
+<a class="jxr_linenumber" name="351" href="#351">351</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> failed(<strong class="jxr_keyword">final</strong> Exception ex) {
+<a class="jxr_linenumber" name="352" href="#352">352</a>             }
+<a class="jxr_linenumber" name="353" href="#353">353</a> 
+<a class="jxr_linenumber" name="354" href="#354">354</a>             @Override
+<a class="jxr_linenumber" name="355" href="#355">355</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> responseReceived(
+<a class="jxr_linenumber" name="356" href="#356">356</a>                     <strong class="jxr_keyword">final</strong> HttpResponse response) <strong class="jxr_keyword">throws</strong> IOException, HttpException {
+<a class="jxr_linenumber" name="357" href="#357">357</a>             }
+<a class="jxr_linenumber" name="358" href="#358">358</a> 
+<a class="jxr_linenumber" name="359" href="#359">359</a>             @Override
+<a class="jxr_linenumber" name="360" href="#360">360</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> consumeContent(
+<a class="jxr_linenumber" name="361" href="#361">361</a>                     <strong class="jxr_keyword">final</strong> ContentDecoder decoder, <strong class="jxr_keyword">final</strong> IOControl ioctrl) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="362" href="#362">362</a>             }
+<a class="jxr_linenumber" name="363" href="#363">363</a> 
+<a class="jxr_linenumber" name="364" href="#364">364</a>             @Override
+<a class="jxr_linenumber" name="365" href="#365">365</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> responseCompleted(<strong class="jxr_keyword">final</strong> HttpContext context) {
+<a class="jxr_linenumber" name="366" href="#366">366</a>             }
+<a class="jxr_linenumber" name="367" href="#367">367</a> 
+<a class="jxr_linenumber" name="368" href="#368">368</a>             @Override
+<a class="jxr_linenumber" name="369" href="#369">369</a>             <strong class="jxr_keyword">public</strong> Exception getException() {
+<a class="jxr_linenumber" name="370" href="#370">370</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="371" href="#371">371</a>             }
+<a class="jxr_linenumber" name="372" href="#372">372</a> 
+<a class="jxr_linenumber" name="373" href="#373">373</a>             @Override
+<a class="jxr_linenumber" name="374" href="#374">374</a>             <strong class="jxr_keyword">public</strong> String getResult() {
+<a class="jxr_linenumber" name="375" href="#375">375</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="376" href="#376">376</a>             }
+<a class="jxr_linenumber" name="377" href="#377">377</a> 
+<a class="jxr_linenumber" name="378" href="#378">378</a>             @Override
+<a class="jxr_linenumber" name="379" href="#379">379</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isDone() {
+<a class="jxr_linenumber" name="380" href="#380">380</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>; <em class="jxr_comment">// cancels fetching the response-body</em>
+<a class="jxr_linenumber" name="381" href="#381">381</a>             }
+<a class="jxr_linenumber" name="382" href="#382">382</a>         };
+<a class="jxr_linenumber" name="383" href="#383">383</a> 
+<a class="jxr_linenumber" name="384" href="#384">384</a>         <strong class="jxr_keyword">final</strong> Future&lt;?&gt; future = <strong class="jxr_keyword">this</strong>.httpclient.execute(producer, consumer, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="385" href="#385">385</a>         future.get();
+<a class="jxr_linenumber" name="386" href="#386">386</a> 
+<a class="jxr_linenumber" name="387" href="#387">387</a>         connMgr.shutdown(1000);
+<a class="jxr_linenumber" name="388" href="#388">388</a> 
 <a class="jxr_linenumber" name="389" href="#389">389</a>         Assert.assertTrue(future.isCancelled());
-<a class="jxr_linenumber" name="390" href="#390">390</a> 
-<a class="jxr_linenumber" name="391" href="#391">391</a>         Assert.assertEquals(1, producerClosed.get());
-<a class="jxr_linenumber" name="392" href="#392">392</a>         Assert.assertEquals(1, consumerClosed.get());
-<a class="jxr_linenumber" name="393" href="#393">393</a>     }
-<a class="jxr_linenumber" name="394" href="#394">394</a> 
-<a class="jxr_linenumber" name="395" href="#395">395</a> }
+<a class="jxr_linenumber" name="390" href="#390">390</a>         Assert.assertTrue(future.isCancelled());
+<a class="jxr_linenumber" name="391" href="#391">391</a> 
+<a class="jxr_linenumber" name="392" href="#392">392</a>         Assert.assertEquals(1, producerClosed.get());
+<a class="jxr_linenumber" name="393" href="#393">393</a>         Assert.assertEquals(1, consumerClosed.get());
+<a class="jxr_linenumber" name="394" href="#394">394</a>     }
+<a class="jxr_linenumber" name="395" href="#395">395</a> 
+<a class="jxr_linenumber" name="396" href="#396">396</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-frame.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-frame.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference Package org.apache.http.nio.client.integration</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference Package org.apache.http.nio.client.integration</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-summary.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-summary.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/integration/package-summary.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference Package org.apache.http.nio.client.integration</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference Package org.apache.http.nio.client.integration</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -177,6 +177,6 @@
         	</ul>
       	</div>
 				<hr />
-		Copyright &#169; 2010-2015 The Apache Software Foundation. All Rights Reserved.
+		Copyright &#169; 2010-2016 The Apache Software Foundation. All Rights Reserved.
 	</body>
 </html>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-frame.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-frame.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference Package org.apache.http.nio.client.methods</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference Package org.apache.http.nio.client.methods</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-summary.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-summary.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/nio/client/methods/package-summary.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference Package org.apache.http.nio.client.methods</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference Package org.apache.http.nio.client.methods</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -92,6 +92,6 @@
         	</ul>
       	</div>
 				<hr />
-		Copyright &#169; 2010-2015 The Apache Software Foundation. All Rights Reserved.
+		Copyright &#169; 2010-2016 The Apache Software Foundation. All Rights Reserved.
 	</body>
 </html>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-frame.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-frame.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-frame.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-summary.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-summary.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/overview-summary.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -24,7 +24,7 @@
 	        </ul>
       	</div>
 		
-		      	<h2>Apache HttpAsyncClient 4.1.1 Reference</h2>
+		      	<h2>Apache HttpAsyncClient 4.1.2 Reference</h2>
 
 		<table class="summary">
         	<thead>
@@ -74,6 +74,6 @@
       	</div>
 		
 		<hr />
-		Copyright &#169; 2010-2015 The Apache Software Foundation. All Rights Reserved.
+		Copyright &#169; 2010-2016 The Apache Software Foundation. All Rights Reserved.
 	</body>
 </html>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/index.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/index.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/index.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/index.html Sat Jun 25 09:35:53 2016
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Apache HttpAsyncClient 4.1.1 Reference</title>
+		<title>Apache HttpAsyncClient 4.1.2 Reference</title>
 	</head>
     <frameset cols="20%,80%">
 		<frameset rows="30%,70%">

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/AbstractHttpAsyncClient.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/AbstractHttpAsyncClient.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/AbstractHttpAsyncClient.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/AbstractHttpAsyncClient.html Sat Jun 25 09:35:53 2016
@@ -523,10 +523,10 @@
 <a class="jxr_linenumber" name="513" href="#513">513</a>         }
 <a class="jxr_linenumber" name="514" href="#514">514</a>         <strong class="jxr_keyword">final</strong> BasicFuture&lt;T&gt; future = <strong class="jxr_keyword">new</strong> BasicFuture&lt;T&gt;(callback);
 <a class="jxr_linenumber" name="515" href="#515">515</a>         <strong class="jxr_keyword">final</strong> ResultCallback&lt;T&gt; resultCallback = <strong class="jxr_keyword">new</strong> DefaultResultCallback&lt;T&gt;(future, <strong class="jxr_keyword">this</strong>.queue);
-<a class="jxr_linenumber" name="516" href="#516">516</a>         DefaultAsyncRequestDirector&lt;T&gt; httpexchange;
+<a class="jxr_linenumber" name="516" href="#516">516</a>         <strong class="jxr_keyword">final</strong> DefaultAsyncRequestDirector&lt;T&gt; httpexchange;
 <a class="jxr_linenumber" name="517" href="#517">517</a>         <strong class="jxr_keyword">synchronized</strong> (<strong class="jxr_keyword">this</strong>) {
 <a class="jxr_linenumber" name="518" href="#518">518</a>             <strong class="jxr_keyword">final</strong> HttpContext defaultContext = createHttpContext();
-<a class="jxr_linenumber" name="519" href="#519">519</a>             HttpContext execContext;
+<a class="jxr_linenumber" name="519" href="#519">519</a>             <strong class="jxr_keyword">final</strong> HttpContext execContext;
 <a class="jxr_linenumber" name="520" href="#520">520</a>             <strong class="jxr_keyword">if</strong> (context == <strong class="jxr_keyword">null</strong>) {
 <a class="jxr_linenumber" name="521" href="#521">521</a>                 execContext = defaultContext;
 <a class="jxr_linenumber" name="522" href="#522">522</a>             } <strong class="jxr_keyword">else</strong> {
@@ -591,7 +591,7 @@
 <a class="jxr_linenumber" name="581" href="#581">581</a>             <strong class="jxr_keyword">final</strong> HttpUriRequest request,
 <a class="jxr_linenumber" name="582" href="#582">582</a>             <strong class="jxr_keyword">final</strong> HttpContext context,
 <a class="jxr_linenumber" name="583" href="#583">583</a>             <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
-<a class="jxr_linenumber" name="584" href="#584">584</a>         HttpHost target;
+<a class="jxr_linenumber" name="584" href="#584">584</a>         <strong class="jxr_keyword">final</strong> HttpHost target;
 <a class="jxr_linenumber" name="585" href="#585">585</a>         <strong class="jxr_keyword">try</strong> {
 <a class="jxr_linenumber" name="586" href="#586">586</a>             target = determineTarget(request);
 <a class="jxr_linenumber" name="587" href="#587">587</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> ClientProtocolException ex) {

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/CloseableHttpAsyncClient.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/CloseableHttpAsyncClient.html?rev=1750192&r1=1750191&r2=1750192&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/CloseableHttpAsyncClient.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref/org/apache/http/impl/nio/client/CloseableHttpAsyncClient.html Sat Jun 25 09:35:53 2016
@@ -43,98 +43,99 @@
 <a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpHost;
 <a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpRequest;
 <a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpResponse;
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.http.annotation.ThreadSafe;
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.ClientProtocolException;
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.methods.HttpUriRequest;
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.protocol.HttpClientContext;
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.utils.URIUtils;
-<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.concurrent.BasicFuture;
-<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.concurrent.FutureCallback;
-<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.client.HttpAsyncClient;
-<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.client.methods.HttpAsyncMethods;
-<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestProducer;
-<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncResponseConsumer;
-<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.http.protocol.HttpContext;
-<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.http.util.Args;
-<a class="jxr_linenumber" name="49" href="#49">49</a>  
-<a class="jxr_linenumber" name="50" href="#50">50</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="51" href="#51">51</a>  <em class="jxr_javadoccomment"> * Base implementation of {@link HttpAsyncClient} that also implements {@link Closeable}.</em>
-<a class="jxr_linenumber" name="52" href="#52">52</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="53" href="#53">53</a>  <em class="jxr_javadoccomment"> * @since 4.0</em>
-<a class="jxr_linenumber" name="54" href="#54">54</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="55" href="#55">55</a>  @ThreadSafe
-<a class="jxr_linenumber" name="56" href="#56">56</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/http/impl/nio/client/CloseableHttpAsyncClient.html">CloseableHttpAsyncClient</a> <strong class="jxr_keyword">implements</strong> HttpAsyncClient, Closeable {
-<a class="jxr_linenumber" name="57" href="#57">57</a>  
-<a class="jxr_linenumber" name="58" href="#58">58</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">boolean</strong> isRunning();
-<a class="jxr_linenumber" name="59" href="#59">59</a>  
-<a class="jxr_linenumber" name="60" href="#60">60</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> start();
-<a class="jxr_linenumber" name="61" href="#61">61</a>  
-<a class="jxr_linenumber" name="62" href="#62">62</a>      @Override
-<a class="jxr_linenumber" name="63" href="#63">63</a>      <strong class="jxr_keyword">public</strong> &lt;T&gt; Future&lt;T&gt; execute(
-<a class="jxr_linenumber" name="64" href="#64">64</a>              <strong class="jxr_keyword">final</strong> HttpAsyncRequestProducer requestProducer,
-<a class="jxr_linenumber" name="65" href="#65">65</a>              <strong class="jxr_keyword">final</strong> HttpAsyncResponseConsumer&lt;T&gt; responseConsumer,
-<a class="jxr_linenumber" name="66" href="#66">66</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;T&gt; callback) {
-<a class="jxr_linenumber" name="67" href="#67">67</a>          <strong class="jxr_keyword">return</strong> execute(requestProducer, responseConsumer, HttpClientContext.create(), callback);
-<a class="jxr_linenumber" name="68" href="#68">68</a>      }
-<a class="jxr_linenumber" name="69" href="#69">69</a>  
-<a class="jxr_linenumber" name="70" href="#70">70</a>      @Override
-<a class="jxr_linenumber" name="71" href="#71">71</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
-<a class="jxr_linenumber" name="72" href="#72">72</a>              <strong class="jxr_keyword">final</strong> HttpHost target, <strong class="jxr_keyword">final</strong> HttpRequest request, <strong class="jxr_keyword">final</strong> HttpContext context,
-<a class="jxr_linenumber" name="73" href="#73">73</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
-<a class="jxr_linenumber" name="74" href="#74">74</a>          <strong class="jxr_keyword">return</strong> execute(
-<a class="jxr_linenumber" name="75" href="#75">75</a>                  HttpAsyncMethods.create(target, request),
-<a class="jxr_linenumber" name="76" href="#76">76</a>                  HttpAsyncMethods.createConsumer(),
-<a class="jxr_linenumber" name="77" href="#77">77</a>                  context, callback);
-<a class="jxr_linenumber" name="78" href="#78">78</a>      }
-<a class="jxr_linenumber" name="79" href="#79">79</a>  
-<a class="jxr_linenumber" name="80" href="#80">80</a>      @Override
-<a class="jxr_linenumber" name="81" href="#81">81</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
-<a class="jxr_linenumber" name="82" href="#82">82</a>              <strong class="jxr_keyword">final</strong> HttpHost target, <strong class="jxr_keyword">final</strong> HttpRequest request,
-<a class="jxr_linenumber" name="83" href="#83">83</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
-<a class="jxr_linenumber" name="84" href="#84">84</a>          <strong class="jxr_keyword">return</strong> execute(target, request, HttpClientContext.create(), callback);
-<a class="jxr_linenumber" name="85" href="#85">85</a>      }
-<a class="jxr_linenumber" name="86" href="#86">86</a>  
-<a class="jxr_linenumber" name="87" href="#87">87</a>      @Override
-<a class="jxr_linenumber" name="88" href="#88">88</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
-<a class="jxr_linenumber" name="89" href="#89">89</a>              <strong class="jxr_keyword">final</strong> HttpUriRequest request,
-<a class="jxr_linenumber" name="90" href="#90">90</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
-<a class="jxr_linenumber" name="91" href="#91">91</a>          <strong class="jxr_keyword">return</strong> execute(request, HttpClientContext.create(), callback);
-<a class="jxr_linenumber" name="92" href="#92">92</a>      }
-<a class="jxr_linenumber" name="93" href="#93">93</a>  
-<a class="jxr_linenumber" name="94" href="#94">94</a>      @Override
-<a class="jxr_linenumber" name="95" href="#95">95</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
-<a class="jxr_linenumber" name="96" href="#96">96</a>              <strong class="jxr_keyword">final</strong> HttpUriRequest request,
-<a class="jxr_linenumber" name="97" href="#97">97</a>              <strong class="jxr_keyword">final</strong> HttpContext context,
-<a class="jxr_linenumber" name="98" href="#98">98</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
-<a class="jxr_linenumber" name="99" href="#99">99</a>          <strong class="jxr_keyword">final</strong> HttpHost target;
-<a class="jxr_linenumber" name="100" href="#100">100</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="101" href="#101">101</a>             target = determineTarget(request);
-<a class="jxr_linenumber" name="102" href="#102">102</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> ClientProtocolException ex) {
-<a class="jxr_linenumber" name="103" href="#103">103</a>             <strong class="jxr_keyword">final</strong> BasicFuture&lt;HttpResponse&gt; future = <strong class="jxr_keyword">new</strong> BasicFuture&lt;HttpResponse&gt;(callback);
-<a class="jxr_linenumber" name="104" href="#104">104</a>             future.failed(ex);
-<a class="jxr_linenumber" name="105" href="#105">105</a>             <strong class="jxr_keyword">return</strong> future;
-<a class="jxr_linenumber" name="106" href="#106">106</a>         }
-<a class="jxr_linenumber" name="107" href="#107">107</a>         <strong class="jxr_keyword">return</strong> execute(target, request, context, callback);
-<a class="jxr_linenumber" name="108" href="#108">108</a>     }
-<a class="jxr_linenumber" name="109" href="#109">109</a> 
-<a class="jxr_linenumber" name="110" href="#110">110</a>     <strong class="jxr_keyword">private</strong> HttpHost determineTarget(<strong class="jxr_keyword">final</strong> HttpUriRequest request) <strong class="jxr_keyword">throws</strong> ClientProtocolException {
-<a class="jxr_linenumber" name="111" href="#111">111</a>         Args.notNull(request, <span class="jxr_string">"HTTP request"</span>);
-<a class="jxr_linenumber" name="112" href="#112">112</a>         <em class="jxr_comment">// A null target may be acceptable if there is a default target.</em>
-<a class="jxr_linenumber" name="113" href="#113">113</a>         <em class="jxr_comment">// Otherwise, the null target is detected in the director.</em>
-<a class="jxr_linenumber" name="114" href="#114">114</a>         HttpHost target = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="115" href="#115">115</a> 
-<a class="jxr_linenumber" name="116" href="#116">116</a>         <strong class="jxr_keyword">final</strong> URI requestURI = request.getURI();
-<a class="jxr_linenumber" name="117" href="#117">117</a>         <strong class="jxr_keyword">if</strong> (requestURI.isAbsolute()) {
-<a class="jxr_linenumber" name="118" href="#118">118</a>             target = URIUtils.extractHost(requestURI);
-<a class="jxr_linenumber" name="119" href="#119">119</a>             <strong class="jxr_keyword">if</strong> (target == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="120" href="#120">120</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> ClientProtocolException(
-<a class="jxr_linenumber" name="121" href="#121">121</a>                         <span class="jxr_string">"URI does not specify a valid host name: "</span> + requestURI);
-<a class="jxr_linenumber" name="122" href="#122">122</a>             }
-<a class="jxr_linenumber" name="123" href="#123">123</a>         }
-<a class="jxr_linenumber" name="124" href="#124">124</a>         <strong class="jxr_keyword">return</strong> target;
-<a class="jxr_linenumber" name="125" href="#125">125</a>     }
-<a class="jxr_linenumber" name="126" href="#126">126</a> 
-<a class="jxr_linenumber" name="127" href="#127">127</a> }
+<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.http.annotation.Contract;
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.http.annotation.ThreadingBehavior;
+<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.ClientProtocolException;
+<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.methods.HttpUriRequest;
+<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.protocol.HttpClientContext;
+<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.client.utils.URIUtils;
+<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.concurrent.BasicFuture;
+<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.concurrent.FutureCallback;
+<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.client.HttpAsyncClient;
+<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.client.methods.HttpAsyncMethods;
+<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncRequestProducer;
+<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.protocol.HttpAsyncResponseConsumer;
+<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.http.protocol.HttpContext;
+<a class="jxr_linenumber" name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> org.apache.http.util.Args;
+<a class="jxr_linenumber" name="50" href="#50">50</a>  
+<a class="jxr_linenumber" name="51" href="#51">51</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="52" href="#52">52</a>  <em class="jxr_javadoccomment"> * Base implementation of {@link HttpAsyncClient} that also implements {@link Closeable}.</em>
+<a class="jxr_linenumber" name="53" href="#53">53</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="54" href="#54">54</a>  <em class="jxr_javadoccomment"> * @since 4.0</em>
+<a class="jxr_linenumber" name="55" href="#55">55</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="56" href="#56">56</a>  @Contract(threading = ThreadingBehavior.SAFE)
+<a class="jxr_linenumber" name="57" href="#57">57</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/http/impl/nio/client/CloseableHttpAsyncClient.html">CloseableHttpAsyncClient</a> <strong class="jxr_keyword">implements</strong> HttpAsyncClient, Closeable {
+<a class="jxr_linenumber" name="58" href="#58">58</a>  
+<a class="jxr_linenumber" name="59" href="#59">59</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">boolean</strong> isRunning();
+<a class="jxr_linenumber" name="60" href="#60">60</a>  
+<a class="jxr_linenumber" name="61" href="#61">61</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> start();
+<a class="jxr_linenumber" name="62" href="#62">62</a>  
+<a class="jxr_linenumber" name="63" href="#63">63</a>      @Override
+<a class="jxr_linenumber" name="64" href="#64">64</a>      <strong class="jxr_keyword">public</strong> &lt;T&gt; Future&lt;T&gt; execute(
+<a class="jxr_linenumber" name="65" href="#65">65</a>              <strong class="jxr_keyword">final</strong> HttpAsyncRequestProducer requestProducer,
+<a class="jxr_linenumber" name="66" href="#66">66</a>              <strong class="jxr_keyword">final</strong> HttpAsyncResponseConsumer&lt;T&gt; responseConsumer,
+<a class="jxr_linenumber" name="67" href="#67">67</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;T&gt; callback) {
+<a class="jxr_linenumber" name="68" href="#68">68</a>          <strong class="jxr_keyword">return</strong> execute(requestProducer, responseConsumer, HttpClientContext.create(), callback);
+<a class="jxr_linenumber" name="69" href="#69">69</a>      }
+<a class="jxr_linenumber" name="70" href="#70">70</a>  
+<a class="jxr_linenumber" name="71" href="#71">71</a>      @Override
+<a class="jxr_linenumber" name="72" href="#72">72</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
+<a class="jxr_linenumber" name="73" href="#73">73</a>              <strong class="jxr_keyword">final</strong> HttpHost target, <strong class="jxr_keyword">final</strong> HttpRequest request, <strong class="jxr_keyword">final</strong> HttpContext context,
+<a class="jxr_linenumber" name="74" href="#74">74</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
+<a class="jxr_linenumber" name="75" href="#75">75</a>          <strong class="jxr_keyword">return</strong> execute(
+<a class="jxr_linenumber" name="76" href="#76">76</a>                  HttpAsyncMethods.create(target, request),
+<a class="jxr_linenumber" name="77" href="#77">77</a>                  HttpAsyncMethods.createConsumer(),
+<a class="jxr_linenumber" name="78" href="#78">78</a>                  context, callback);
+<a class="jxr_linenumber" name="79" href="#79">79</a>      }
+<a class="jxr_linenumber" name="80" href="#80">80</a>  
+<a class="jxr_linenumber" name="81" href="#81">81</a>      @Override
+<a class="jxr_linenumber" name="82" href="#82">82</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
+<a class="jxr_linenumber" name="83" href="#83">83</a>              <strong class="jxr_keyword">final</strong> HttpHost target, <strong class="jxr_keyword">final</strong> HttpRequest request,
+<a class="jxr_linenumber" name="84" href="#84">84</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
+<a class="jxr_linenumber" name="85" href="#85">85</a>          <strong class="jxr_keyword">return</strong> execute(target, request, HttpClientContext.create(), callback);
+<a class="jxr_linenumber" name="86" href="#86">86</a>      }
+<a class="jxr_linenumber" name="87" href="#87">87</a>  
+<a class="jxr_linenumber" name="88" href="#88">88</a>      @Override
+<a class="jxr_linenumber" name="89" href="#89">89</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
+<a class="jxr_linenumber" name="90" href="#90">90</a>              <strong class="jxr_keyword">final</strong> HttpUriRequest request,
+<a class="jxr_linenumber" name="91" href="#91">91</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
+<a class="jxr_linenumber" name="92" href="#92">92</a>          <strong class="jxr_keyword">return</strong> execute(request, HttpClientContext.create(), callback);
+<a class="jxr_linenumber" name="93" href="#93">93</a>      }
+<a class="jxr_linenumber" name="94" href="#94">94</a>  
+<a class="jxr_linenumber" name="95" href="#95">95</a>      @Override
+<a class="jxr_linenumber" name="96" href="#96">96</a>      <strong class="jxr_keyword">public</strong> Future&lt;HttpResponse&gt; execute(
+<a class="jxr_linenumber" name="97" href="#97">97</a>              <strong class="jxr_keyword">final</strong> HttpUriRequest request,
+<a class="jxr_linenumber" name="98" href="#98">98</a>              <strong class="jxr_keyword">final</strong> HttpContext context,
+<a class="jxr_linenumber" name="99" href="#99">99</a>              <strong class="jxr_keyword">final</strong> FutureCallback&lt;HttpResponse&gt; callback) {
+<a class="jxr_linenumber" name="100" href="#100">100</a>         <strong class="jxr_keyword">final</strong> HttpHost target;
+<a class="jxr_linenumber" name="101" href="#101">101</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="102" href="#102">102</a>             target = determineTarget(request);
+<a class="jxr_linenumber" name="103" href="#103">103</a>         } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> ClientProtocolException ex) {
+<a class="jxr_linenumber" name="104" href="#104">104</a>             <strong class="jxr_keyword">final</strong> BasicFuture&lt;HttpResponse&gt; future = <strong class="jxr_keyword">new</strong> BasicFuture&lt;HttpResponse&gt;(callback);
+<a class="jxr_linenumber" name="105" href="#105">105</a>             future.failed(ex);
+<a class="jxr_linenumber" name="106" href="#106">106</a>             <strong class="jxr_keyword">return</strong> future;
+<a class="jxr_linenumber" name="107" href="#107">107</a>         }
+<a class="jxr_linenumber" name="108" href="#108">108</a>         <strong class="jxr_keyword">return</strong> execute(target, request, context, callback);
+<a class="jxr_linenumber" name="109" href="#109">109</a>     }
+<a class="jxr_linenumber" name="110" href="#110">110</a> 
+<a class="jxr_linenumber" name="111" href="#111">111</a>     <strong class="jxr_keyword">private</strong> HttpHost determineTarget(<strong class="jxr_keyword">final</strong> HttpUriRequest request) <strong class="jxr_keyword">throws</strong> ClientProtocolException {
+<a class="jxr_linenumber" name="112" href="#112">112</a>         Args.notNull(request, <span class="jxr_string">"HTTP request"</span>);
+<a class="jxr_linenumber" name="113" href="#113">113</a>         <em class="jxr_comment">// A null target may be acceptable if there is a default target.</em>
+<a class="jxr_linenumber" name="114" href="#114">114</a>         <em class="jxr_comment">// Otherwise, the null target is detected in the director.</em>
+<a class="jxr_linenumber" name="115" href="#115">115</a>         HttpHost target = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="116" href="#116">116</a> 
+<a class="jxr_linenumber" name="117" href="#117">117</a>         <strong class="jxr_keyword">final</strong> URI requestURI = request.getURI();
+<a class="jxr_linenumber" name="118" href="#118">118</a>         <strong class="jxr_keyword">if</strong> (requestURI.isAbsolute()) {
+<a class="jxr_linenumber" name="119" href="#119">119</a>             target = URIUtils.extractHost(requestURI);
+<a class="jxr_linenumber" name="120" href="#120">120</a>             <strong class="jxr_keyword">if</strong> (target == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="121" href="#121">121</a>                 <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> ClientProtocolException(
+<a class="jxr_linenumber" name="122" href="#122">122</a>                         <span class="jxr_string">"URI does not specify a valid host name: "</span> + requestURI);
+<a class="jxr_linenumber" name="123" href="#123">123</a>             }
+<a class="jxr_linenumber" name="124" href="#124">124</a>         }
+<a class="jxr_linenumber" name="125" href="#125">125</a>         <strong class="jxr_keyword">return</strong> target;
+<a class="jxr_linenumber" name="126" href="#126">126</a>     }
+<a class="jxr_linenumber" name="127" href="#127">127</a> 
+<a class="jxr_linenumber" name="128" href="#128">128</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>



Mime
View raw message