hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1675075 [12/20] - 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 Tue, 21 Apr 2015 09:46:20 GMT
Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/index.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/index.html?rev=1675075&r1=1675074&r2=1675075&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/index.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/index.html Tue Apr 21 09:46:17 2015
@@ -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-beta1 Reference</title>
+		<title>Apache HttpAsyncClient 4.1 Reference</title>
 	</head>
     <frameset cols="20%,80%">
 		<frameset rows="30%,70%">

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/TestPoolingHttpClientAsyncConnectionManager.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/TestPoolingHttpClientAsyncConnectionManager.html?rev=1675075&r1=1675074&r2=1675075&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/TestPoolingHttpClientAsyncConnectionManager.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/TestPoolingHttpClientAsyncConnectionManager.html Tue Apr 21 09:46:17 2015
@@ -290,7 +290,7 @@
 <a class="jxr_linenumber" name="280" href="#280">280</a> 
 <a class="jxr_linenumber" name="281" href="#281">281</a>     @Test
 <a class="jxr_linenumber" name="282" href="#282">282</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConnectionInitializeHttps() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="283" href="#283">283</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, -1, <span class="jxr_string">"https"</span>);
+<a class="jxr_linenumber" name="283" href="#283">283</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 443, <span class="jxr_string">"https"</span>);
 <a class="jxr_linenumber" name="284" href="#284">284</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">true</strong>);
 <a class="jxr_linenumber" name="285" href="#285">285</a>         <strong class="jxr_keyword">final</strong> HttpContext context = <strong class="jxr_keyword">new</strong> BasicHttpContext();
 <a class="jxr_linenumber" name="286" href="#286">286</a> 
@@ -310,7 +310,7 @@
 <a class="jxr_linenumber" name="300" href="#300">300</a> 
 <a class="jxr_linenumber" name="301" href="#301">301</a>     @Test
 <a class="jxr_linenumber" name="302" href="#302">302</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConnectionInitializeContextSpecific() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="303" href="#303">303</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, -1, <span class="jxr_string">"http11"</span>);
+<a class="jxr_linenumber" name="303" href="#303">303</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80, <span class="jxr_string">"http11"</span>);
 <a class="jxr_linenumber" name="304" href="#304">304</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="305" href="#305">305</a>         <strong class="jxr_keyword">final</strong> HttpContext context = <strong class="jxr_keyword">new</strong> BasicHttpContext();
 <a class="jxr_linenumber" name="306" href="#306">306</a> 
@@ -353,7 +353,7 @@
 <a class="jxr_linenumber" name="343" href="#343">343</a> 
 <a class="jxr_linenumber" name="344" href="#344">344</a>     @Test
 <a class="jxr_linenumber" name="345" href="#345">345</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConnectionUpgrade() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="346" href="#346">346</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, -1, <span class="jxr_string">"https"</span>);
+<a class="jxr_linenumber" name="346" href="#346">346</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 443, <span class="jxr_string">"https"</span>);
 <a class="jxr_linenumber" name="347" href="#347">347</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="348" href="#348">348</a>         <strong class="jxr_keyword">final</strong> HttpContext context = <strong class="jxr_keyword">new</strong> BasicHttpContext();
 <a class="jxr_linenumber" name="349" href="#349">349</a> 
@@ -390,7 +390,7 @@
 <a class="jxr_linenumber" name="380" href="#380">380</a> 
 <a class="jxr_linenumber" name="381" href="#381">381</a>     @Test(expected=UnsupportedSchemeException.<strong class="jxr_keyword">class</strong>)
 <a class="jxr_linenumber" name="382" href="#382">382</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConnectionUpgradeIllegalScheme() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="383" href="#383">383</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, -1, <span class="jxr_string">"http"</span>);
+<a class="jxr_linenumber" name="383" href="#383">383</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80, <span class="jxr_string">"http"</span>);
 <a class="jxr_linenumber" name="384" href="#384">384</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="385" href="#385">385</a>         <strong class="jxr_keyword">final</strong> HttpContext context = <strong class="jxr_keyword">new</strong> BasicHttpContext();
 <a class="jxr_linenumber" name="386" href="#386">386</a> 
@@ -407,7 +407,7 @@
 <a class="jxr_linenumber" name="397" href="#397">397</a> 
 <a class="jxr_linenumber" name="398" href="#398">398</a>     @Test
 <a class="jxr_linenumber" name="399" href="#399">399</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testConnectionRouteComplete() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="400" href="#400">400</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, -1, <span class="jxr_string">"http"</span>);
+<a class="jxr_linenumber" name="400" href="#400">400</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80, <span class="jxr_string">"http"</span>);
 <a class="jxr_linenumber" name="401" href="#401">401</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="402" href="#402">402</a>         <strong class="jxr_keyword">final</strong> HttpContext context = <strong class="jxr_keyword">new</strong> BasicHttpContext();
 <a class="jxr_linenumber" name="403" href="#403">403</a> 
@@ -439,7 +439,7 @@
 <a class="jxr_linenumber" name="429" href="#429">429</a>         connman.getDefaultMaxPerRoute();
 <a class="jxr_linenumber" name="430" href="#430">430</a>         Mockito.verify(pool).getDefaultMaxPerRoute();
 <a class="jxr_linenumber" name="431" href="#431">431</a> 
-<a class="jxr_linenumber" name="432" href="#432">432</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(<strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>));
+<a class="jxr_linenumber" name="432" href="#432">432</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(<strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80));
 <a class="jxr_linenumber" name="433" href="#433">433</a>         connman.getMaxPerRoute(route);
 <a class="jxr_linenumber" name="434" href="#434">434</a>         Mockito.verify(pool).getMaxPerRoute(route);
 <a class="jxr_linenumber" name="435" href="#435">435</a> 
@@ -465,10 +465,10 @@
 <a class="jxr_linenumber" name="455" href="#455">455</a>         <strong class="jxr_keyword">final</strong> InternalConnectionFactory internalConnFactory = <strong class="jxr_keyword">new</strong> InternalConnectionFactory(
 <a class="jxr_linenumber" name="456" href="#456">456</a>             configData, connFactory);
 <a class="jxr_linenumber" name="457" href="#457">457</a> 
-<a class="jxr_linenumber" name="458" href="#458">458</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(<strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>));
+<a class="jxr_linenumber" name="458" href="#458">458</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(<strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80));
 <a class="jxr_linenumber" name="459" href="#459">459</a>         internalConnFactory.create(route, iosession);
 <a class="jxr_linenumber" name="460" href="#460">460</a> 
-<a class="jxr_linenumber" name="461" href="#461">461</a>         Mockito.verify(sslStrategy, Mockito.never()).upgrade(Mockito.eq(<strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>)),
+<a class="jxr_linenumber" name="461" href="#461">461</a>         Mockito.verify(sslStrategy, Mockito.never()).upgrade(Mockito.eq(<strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80)),
 <a class="jxr_linenumber" name="462" href="#462">462</a>                 Mockito.&lt;IOSession&gt;any());
 <a class="jxr_linenumber" name="463" href="#463">463</a>         Mockito.verify(connFactory).create(Mockito.same(iosession), Mockito.&lt;ConnectionConfig&gt;any());
 <a class="jxr_linenumber" name="464" href="#464">464</a>     }
@@ -479,7 +479,7 @@
 <a class="jxr_linenumber" name="469" href="#469">469</a>         <strong class="jxr_keyword">final</strong> InternalConnectionFactory internalConnFactory = <strong class="jxr_keyword">new</strong> InternalConnectionFactory(
 <a class="jxr_linenumber" name="470" href="#470">470</a>             configData, connFactory);
 <a class="jxr_linenumber" name="471" href="#471">471</a> 
-<a class="jxr_linenumber" name="472" href="#472">472</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>);
+<a class="jxr_linenumber" name="472" href="#472">472</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80);
 <a class="jxr_linenumber" name="473" href="#473">473</a>         <strong class="jxr_keyword">final</strong> HttpHost proxy = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"someproxy"</span>, 8888);
 <a class="jxr_linenumber" name="474" href="#474">474</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target, <strong class="jxr_keyword">null</strong>, proxy, false);
 <a class="jxr_linenumber" name="475" href="#475">475</a> 
@@ -497,7 +497,7 @@
 <a class="jxr_linenumber" name="487" href="#487">487</a>         <strong class="jxr_keyword">final</strong> InternalConnectionFactory internalConnFactory = <strong class="jxr_keyword">new</strong> InternalConnectionFactory(
 <a class="jxr_linenumber" name="488" href="#488">488</a>             configData, connFactory);
 <a class="jxr_linenumber" name="489" href="#489">489</a> 
-<a class="jxr_linenumber" name="490" href="#490">490</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>);
+<a class="jxr_linenumber" name="490" href="#490">490</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80);
 <a class="jxr_linenumber" name="491" href="#491">491</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="492" href="#492">492</a> 
 <a class="jxr_linenumber" name="493" href="#493">493</a>         <strong class="jxr_keyword">final</strong> ConnectionConfig config = ConnectionConfig.custom().build();
@@ -514,7 +514,7 @@
 <a class="jxr_linenumber" name="504" href="#504">504</a>         <strong class="jxr_keyword">final</strong> InternalConnectionFactory internalConnFactory = <strong class="jxr_keyword">new</strong> InternalConnectionFactory(
 <a class="jxr_linenumber" name="505" href="#505">505</a>             configData, connFactory);
 <a class="jxr_linenumber" name="506" href="#506">506</a> 
-<a class="jxr_linenumber" name="507" href="#507">507</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>);
+<a class="jxr_linenumber" name="507" href="#507">507</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80);
 <a class="jxr_linenumber" name="508" href="#508">508</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="509" href="#509">509</a> 
 <a class="jxr_linenumber" name="510" href="#510">510</a>         <strong class="jxr_keyword">final</strong> ConnectionConfig config = ConnectionConfig.custom().build();
@@ -531,7 +531,7 @@
 <a class="jxr_linenumber" name="521" href="#521">521</a>         <strong class="jxr_keyword">final</strong> InternalConnectionFactory internalConnFactory = <strong class="jxr_keyword">new</strong> InternalConnectionFactory(
 <a class="jxr_linenumber" name="522" href="#522">522</a>             configData, connFactory);
 <a class="jxr_linenumber" name="523" href="#523">523</a> 
-<a class="jxr_linenumber" name="524" href="#524">524</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>);
+<a class="jxr_linenumber" name="524" href="#524">524</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80);
 <a class="jxr_linenumber" name="525" href="#525">525</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="526" href="#526">526</a> 
 <a class="jxr_linenumber" name="527" href="#527">527</a>         configData.setDefaultConnectionConfig(<strong class="jxr_keyword">null</strong>);
@@ -573,7 +573,7 @@
 <a class="jxr_linenumber" name="563" href="#563">563</a>         <strong class="jxr_keyword">final</strong> InternalAddressResolver addressResolver = <strong class="jxr_keyword">new</strong> InternalAddressResolver(
 <a class="jxr_linenumber" name="564" href="#564">564</a>                 schemePortResolver, dnsResolver);
 <a class="jxr_linenumber" name="565" href="#565">565</a> 
-<a class="jxr_linenumber" name="566" href="#566">566</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>);
+<a class="jxr_linenumber" name="566" href="#566">566</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80);
 <a class="jxr_linenumber" name="567" href="#567">567</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target);
 <a class="jxr_linenumber" name="568" href="#568">568</a> 
 <a class="jxr_linenumber" name="569" href="#569">569</a>         Mockito.when(schemePortResolver.resolve(target)).thenReturn(123);
@@ -592,7 +592,7 @@
 <a class="jxr_linenumber" name="582" href="#582">582</a>         <strong class="jxr_keyword">final</strong> InternalAddressResolver addressResolver = <strong class="jxr_keyword">new</strong> InternalAddressResolver(
 <a class="jxr_linenumber" name="583" href="#583">583</a>                 schemePortResolver, dnsResolver);
 <a class="jxr_linenumber" name="584" href="#584">584</a> 
-<a class="jxr_linenumber" name="585" href="#585">585</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>);
+<a class="jxr_linenumber" name="585" href="#585">585</a>         <strong class="jxr_keyword">final</strong> HttpHost target = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"somehost"</span>, 80);
 <a class="jxr_linenumber" name="586" href="#586">586</a>         <strong class="jxr_keyword">final</strong> HttpHost proxy = <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"someproxy"</span>);
 <a class="jxr_linenumber" name="587" href="#587">587</a>         <strong class="jxr_keyword">final</strong> HttpRoute route = <strong class="jxr_keyword">new</strong> HttpRoute(target, <strong class="jxr_keyword">null</strong>, proxy, false);
 <a class="jxr_linenumber" name="588" href="#588">588</a> 

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/package-frame.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/package-frame.html?rev=1675075&r1=1675074&r2=1675075&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/package-frame.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/package-frame.html Tue Apr 21 09:46:17 2015
@@ -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-beta1 Reference Package org.apache.http.impl.nio.conn</title>
+		<title>Apache HttpAsyncClient 4.1 Reference Package org.apache.http.impl.nio.conn</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/impl/nio/conn/package-summary.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/package-summary.html?rev=1675075&r1=1675074&r2=1675075&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/package-summary.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/impl/nio/conn/package-summary.html Tue Apr 21 09:46:17 2015
@@ -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-beta1 Reference Package org.apache.http.impl.nio.conn</title>
+		<title>Apache HttpAsyncClient 4.1 Reference Package org.apache.http.impl.nio.conn</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -67,6 +67,6 @@
         	</ul>
       	</div>
 				<hr />
-		Copyright &#169; 2010-2014 The Apache Software Foundation. All Rights Reserved.
+		Copyright &#169; 2010-2015 The Apache Software Foundation. All Rights Reserved.
 	</body>
 </html>

Modified: httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/AbstractAsyncTest.html
URL: http://svn.apache.org/viewvc/httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/AbstractAsyncTest.html?rev=1675075&r1=1675074&r2=1675075&view=diff
==============================================================================
--- httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/AbstractAsyncTest.html (original)
+++ httpcomponents/site/httpcomponents-asyncclient-4.1.x/httpasyncclient/xref-test/org/apache/http/localserver/AbstractAsyncTest.html Tue Apr 21 09:46:17 2015
@@ -38,93 +38,122 @@
 <a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">package</strong> org.apache.http.localserver;
 <a class="jxr_linenumber" name="29" href="#29">29</a>  
 <a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> java.net.InetSocketAddress;
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.TimeUnit;
-<a class="jxr_linenumber" name="32" href="#32">32</a>  
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.http.ExceptionLogger;
-<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.http.HttpHost;
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.http.config.Registry;
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.http.config.RegistryBuilder;
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.http.conn.ssl.NoopHostnameVerifier;
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.bootstrap.HttpServer;
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.bootstrap.ServerBootstrap;
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager;
-<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
-<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.reactor.IOReactorConfig;
-<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.conn.NoopIOSessionStrategy;
-<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.conn.SchemeIOSessionStrategy;
-<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.conn.ssl.SSLIOSessionStrategy;
-<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.reactor.ListenerEndpoint;
-<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.junit.After;
-<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.junit.Before;
-<a class="jxr_linenumber" name="49" href="#49">49</a>  
-<a class="jxr_linenumber" name="50" href="#50">50</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">AbstractAsyncTest</a> {
-<a class="jxr_linenumber" name="51" href="#51">51</a>  
-<a class="jxr_linenumber" name="52" href="#52">52</a>      <strong class="jxr_keyword">public</strong> enum <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">ProtocolScheme</a> { http, https };
-<a class="jxr_linenumber" name="53" href="#53">53</a>  
-<a class="jxr_linenumber" name="54" href="#54">54</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">ProtocolScheme</a> scheme;
+<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> java.net.URL;
+<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.TimeUnit;
+<a class="jxr_linenumber" name="33" href="#33">33</a>  
+<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> javax.net.ssl.SSLContext;
+<a class="jxr_linenumber" name="35" href="#35">35</a>  
+<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.logging.Log;
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.logging.LogFactory;
+<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.http.ExceptionLogger;
+<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.config.Registry;
+<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.http.config.RegistryBuilder;
+<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.http.conn.ssl.DefaultHostnameVerifier;
+<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.bootstrap.HttpServer;
+<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.bootstrap.ServerBootstrap;
+<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager;
+<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor;
+<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.http.impl.nio.reactor.IOReactorConfig;
+<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.conn.NoopIOSessionStrategy;
+<a class="jxr_linenumber" name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.conn.SchemeIOSessionStrategy;
+<a class="jxr_linenumber" name="50" href="#50">50</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.conn.ssl.SSLIOSessionStrategy;
+<a class="jxr_linenumber" name="51" href="#51">51</a>  <strong class="jxr_keyword">import</strong> org.apache.http.nio.reactor.ListenerEndpoint;
+<a class="jxr_linenumber" name="52" href="#52">52</a>  <strong class="jxr_keyword">import</strong> org.apache.http.ssl.SSLContextBuilder;
+<a class="jxr_linenumber" name="53" href="#53">53</a>  <strong class="jxr_keyword">import</strong> org.junit.After;
+<a class="jxr_linenumber" name="54" href="#54">54</a>  <strong class="jxr_keyword">import</strong> org.junit.Before;
 <a class="jxr_linenumber" name="55" href="#55">55</a>  
-<a class="jxr_linenumber" name="56" href="#56">56</a>      <strong class="jxr_keyword">protected</strong> ServerBootstrap serverBootstrap;
-<a class="jxr_linenumber" name="57" href="#57">57</a>      <strong class="jxr_keyword">protected</strong> HttpServer server;
-<a class="jxr_linenumber" name="58" href="#58">58</a>      <strong class="jxr_keyword">protected</strong> PoolingNHttpClientConnectionManager connMgr;
+<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/localserver/AbstractAsyncTest.html">AbstractAsyncTest</a> {
+<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> enum <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">ProtocolScheme</a> { http, https };
 <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> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">AbstractAsyncTest</a>(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">ProtocolScheme</a> scheme) {
-<a class="jxr_linenumber" name="61" href="#61">61</a>          <strong class="jxr_keyword">this</strong>.scheme = scheme;
-<a class="jxr_linenumber" name="62" href="#62">62</a>      }
-<a class="jxr_linenumber" name="63" href="#63">63</a>  
-<a class="jxr_linenumber" name="64" href="#64">64</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">AbstractAsyncTest</a>() {
-<a class="jxr_linenumber" name="65" href="#65">65</a>          <strong class="jxr_keyword">this</strong>(ProtocolScheme.http);
-<a class="jxr_linenumber" name="66" href="#66">66</a>      }
-<a class="jxr_linenumber" name="67" href="#67">67</a>  
-<a class="jxr_linenumber" name="68" href="#68">68</a>      <strong class="jxr_keyword">public</strong> String getSchemeName() {
-<a class="jxr_linenumber" name="69" href="#69">69</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.scheme.name();
-<a class="jxr_linenumber" name="70" href="#70">70</a>      }
-<a class="jxr_linenumber" name="71" href="#71">71</a>  
-<a class="jxr_linenumber" name="72" href="#72">72</a>      <strong class="jxr_keyword">public</strong> HttpHost startServer() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="73" href="#73">73</a>          <strong class="jxr_keyword">this</strong>.server = <strong class="jxr_keyword">this</strong>.serverBootstrap.create();
-<a class="jxr_linenumber" name="74" href="#74">74</a>          <strong class="jxr_keyword">this</strong>.server.start();
-<a class="jxr_linenumber" name="75" href="#75">75</a>  
-<a class="jxr_linenumber" name="76" href="#76">76</a>          <strong class="jxr_keyword">final</strong> ListenerEndpoint endpoint = <strong class="jxr_keyword">this</strong>.server.getEndpoint();
-<a class="jxr_linenumber" name="77" href="#77">77</a>          endpoint.waitFor();
-<a class="jxr_linenumber" name="78" href="#78">78</a>  
-<a class="jxr_linenumber" name="79" href="#79">79</a>          <strong class="jxr_keyword">final</strong> InetSocketAddress address = (InetSocketAddress) endpoint.getAddress();
-<a class="jxr_linenumber" name="80" href="#80">80</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"localhost"</span>, address.getPort(), <strong class="jxr_keyword">this</strong>.scheme.name());
-<a class="jxr_linenumber" name="81" href="#81">81</a>      }
-<a class="jxr_linenumber" name="82" href="#82">82</a>  
-<a class="jxr_linenumber" name="83" href="#83">83</a>      @Before
-<a class="jxr_linenumber" name="84" href="#84">84</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="85" href="#85">85</a>          <strong class="jxr_keyword">this</strong>.serverBootstrap = ServerBootstrap.bootstrap();
-<a class="jxr_linenumber" name="86" href="#86">86</a>          <strong class="jxr_keyword">final</strong> IOReactorConfig ioReactorConfig = IOReactorConfig.custom()
-<a class="jxr_linenumber" name="87" href="#87">87</a>                  .setSoTimeout(15000)
-<a class="jxr_linenumber" name="88" href="#88">88</a>                  .build();
-<a class="jxr_linenumber" name="89" href="#89">89</a>          <strong class="jxr_keyword">this</strong>.serverBootstrap.setServerInfo(<span class="jxr_string">"TEST/1.1"</span>);
-<a class="jxr_linenumber" name="90" href="#90">90</a>          <strong class="jxr_keyword">this</strong>.serverBootstrap.setIOReactorConfig(ioReactorConfig);
-<a class="jxr_linenumber" name="91" href="#91">91</a>          <strong class="jxr_keyword">this</strong>.serverBootstrap.setExceptionLogger(ExceptionLogger.STD_ERR);
-<a class="jxr_linenumber" name="92" href="#92">92</a>          <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.scheme.equals(ProtocolScheme.https)) {
-<a class="jxr_linenumber" name="93" href="#93">93</a>              <strong class="jxr_keyword">this</strong>.serverBootstrap.setSslContext(SSLTestContexts.createServerSSLContext());
-<a class="jxr_linenumber" name="94" href="#94">94</a>          }
-<a class="jxr_linenumber" name="95" href="#95">95</a>  
-<a class="jxr_linenumber" name="96" href="#96">96</a>          <strong class="jxr_keyword">final</strong> RegistryBuilder&lt;SchemeIOSessionStrategy&gt; builder = RegistryBuilder.create();
-<a class="jxr_linenumber" name="97" href="#97">97</a>          builder.register(<span class="jxr_string">"http"</span>, NoopIOSessionStrategy.INSTANCE);
-<a class="jxr_linenumber" name="98" href="#98">98</a>          <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.scheme.equals(ProtocolScheme.https)) {
-<a class="jxr_linenumber" name="99" href="#99">99</a>              builder.register(<span class="jxr_string">"https"</span>, <strong class="jxr_keyword">new</strong> SSLIOSessionStrategy(
-<a class="jxr_linenumber" name="100" href="#100">100</a>                     SSLTestContexts.createClientSSLContext(),
-<a class="jxr_linenumber" name="101" href="#101">101</a>                     <em class="jxr_comment">// TODO: replace with the default hostname verifier</em>
-<a class="jxr_linenumber" name="102" href="#102">102</a>                     <em class="jxr_comment">// TODO: after upgrade to HttpCore 4.4-beta2 or newer</em>
-<a class="jxr_linenumber" name="103" href="#103">103</a>                     NoopHostnameVerifier.INSTANCE));
-<a class="jxr_linenumber" name="104" href="#104">104</a>         }
-<a class="jxr_linenumber" name="105" href="#105">105</a>         <strong class="jxr_keyword">final</strong> Registry&lt;SchemeIOSessionStrategy&gt; registry =  builder.build();
-<a class="jxr_linenumber" name="106" href="#106">106</a>         <strong class="jxr_keyword">final</strong> DefaultConnectingIOReactor ioReactor = <strong class="jxr_keyword">new</strong> DefaultConnectingIOReactor(ioReactorConfig);
-<a class="jxr_linenumber" name="107" href="#107">107</a>         <strong class="jxr_keyword">this</strong>.connMgr = <strong class="jxr_keyword">new</strong> PoolingNHttpClientConnectionManager(ioReactor, registry);
-<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>     @After
-<a class="jxr_linenumber" name="111" href="#111">111</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> shutDown() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="112" href="#112">112</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.server != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="113" href="#113">113</a>             <strong class="jxr_keyword">this</strong>.server.shutdown(10, TimeUnit.SECONDS);
-<a class="jxr_linenumber" name="114" href="#114">114</a>         }
-<a class="jxr_linenumber" name="115" href="#115">115</a>     }
-<a class="jxr_linenumber" name="116" href="#116">116</a> 
-<a class="jxr_linenumber" name="117" href="#117">117</a> }
+<a class="jxr_linenumber" name="60" href="#60">60</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">ProtocolScheme</a> scheme;
+<a class="jxr_linenumber" name="61" href="#61">61</a>  
+<a class="jxr_linenumber" name="62" href="#62">62</a>      <strong class="jxr_keyword">protected</strong> ServerBootstrap serverBootstrap;
+<a class="jxr_linenumber" name="63" href="#63">63</a>      <strong class="jxr_keyword">protected</strong> HttpServer server;
+<a class="jxr_linenumber" name="64" href="#64">64</a>      <strong class="jxr_keyword">protected</strong> PoolingNHttpClientConnectionManager connMgr;
+<a class="jxr_linenumber" name="65" href="#65">65</a>  
+<a class="jxr_linenumber" name="66" href="#66">66</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">AbstractAsyncTest</a>(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">ProtocolScheme</a> scheme) {
+<a class="jxr_linenumber" name="67" href="#67">67</a>          <strong class="jxr_keyword">this</strong>.scheme = scheme;
+<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>      <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/http/localserver/AbstractAsyncTest.html">AbstractAsyncTest</a>() {
+<a class="jxr_linenumber" name="71" href="#71">71</a>          <strong class="jxr_keyword">this</strong>(ProtocolScheme.http);
+<a class="jxr_linenumber" name="72" href="#72">72</a>      }
+<a class="jxr_linenumber" name="73" href="#73">73</a>  
+<a class="jxr_linenumber" name="74" href="#74">74</a>      <strong class="jxr_keyword">public</strong> String getSchemeName() {
+<a class="jxr_linenumber" name="75" href="#75">75</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.scheme.name();
+<a class="jxr_linenumber" name="76" href="#76">76</a>      }
+<a class="jxr_linenumber" name="77" href="#77">77</a>  
+<a class="jxr_linenumber" name="78" href="#78">78</a>      <strong class="jxr_keyword">protected</strong> SSLContext createServerSSLContext() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="79" href="#79">79</a>          <strong class="jxr_keyword">final</strong> URL keyStoreURL = getClass().getResource(<span class="jxr_string">"/test.keystore"</span>);
+<a class="jxr_linenumber" name="80" href="#80">80</a>          <strong class="jxr_keyword">final</strong> String storePassword = <span class="jxr_string">"nopassword"</span>;
+<a class="jxr_linenumber" name="81" href="#81">81</a>          <strong class="jxr_keyword">return</strong> SSLContextBuilder.create()
+<a class="jxr_linenumber" name="82" href="#82">82</a>                  .loadTrustMaterial(keyStoreURL, storePassword.toCharArray())
+<a class="jxr_linenumber" name="83" href="#83">83</a>                  .loadKeyMaterial(keyStoreURL, storePassword.toCharArray(), storePassword.toCharArray())
+<a class="jxr_linenumber" name="84" href="#84">84</a>                  .build();
+<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>      <strong class="jxr_keyword">protected</strong> SSLContext createClientSSLContext() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="88" href="#88">88</a>          <strong class="jxr_keyword">final</strong> URL keyStoreURL = getClass().getResource(<span class="jxr_string">"/test.keystore"</span>);
+<a class="jxr_linenumber" name="89" href="#89">89</a>          <strong class="jxr_keyword">final</strong> String storePassword = <span class="jxr_string">"nopassword"</span>;
+<a class="jxr_linenumber" name="90" href="#90">90</a>          <strong class="jxr_keyword">return</strong> SSLContextBuilder.create()
+<a class="jxr_linenumber" name="91" href="#91">91</a>                  .loadTrustMaterial(keyStoreURL, storePassword.toCharArray())
+<a class="jxr_linenumber" name="92" href="#92">92</a>                  .build();
+<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>      <strong class="jxr_keyword">public</strong> HttpHost startServer() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="96" href="#96">96</a>          <strong class="jxr_keyword">this</strong>.server = <strong class="jxr_keyword">this</strong>.serverBootstrap.create();
+<a class="jxr_linenumber" name="97" href="#97">97</a>          <strong class="jxr_keyword">this</strong>.server.start();
+<a class="jxr_linenumber" name="98" href="#98">98</a>  
+<a class="jxr_linenumber" name="99" href="#99">99</a>          <strong class="jxr_keyword">final</strong> ListenerEndpoint endpoint = <strong class="jxr_keyword">this</strong>.server.getEndpoint();
+<a class="jxr_linenumber" name="100" href="#100">100</a>         endpoint.waitFor();
+<a class="jxr_linenumber" name="101" href="#101">101</a> 
+<a class="jxr_linenumber" name="102" href="#102">102</a>         <strong class="jxr_keyword">final</strong> InetSocketAddress address = (InetSocketAddress) endpoint.getAddress();
+<a class="jxr_linenumber" name="103" href="#103">103</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> HttpHost(<span class="jxr_string">"localhost"</span>, address.getPort(), <strong class="jxr_keyword">this</strong>.scheme.name());
+<a class="jxr_linenumber" name="104" href="#104">104</a>     }
+<a class="jxr_linenumber" name="105" href="#105">105</a> 
+<a class="jxr_linenumber" name="106" href="#106">106</a>     @Before
+<a class="jxr_linenumber" name="107" href="#107">107</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="108" href="#108">108</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap = ServerBootstrap.bootstrap();
+<a class="jxr_linenumber" name="109" href="#109">109</a>         <strong class="jxr_keyword">final</strong> IOReactorConfig ioReactorConfig = IOReactorConfig.custom()
+<a class="jxr_linenumber" name="110" href="#110">110</a>                 .setSoTimeout(15000)
+<a class="jxr_linenumber" name="111" href="#111">111</a>                 .build();
+<a class="jxr_linenumber" name="112" href="#112">112</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap.setServerInfo(<span class="jxr_string">"TEST/1.1"</span>);
+<a class="jxr_linenumber" name="113" href="#113">113</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap.setIOReactorConfig(ioReactorConfig);
+<a class="jxr_linenumber" name="114" href="#114">114</a>         <strong class="jxr_keyword">this</strong>.serverBootstrap.setExceptionLogger(<strong class="jxr_keyword">new</strong> ExceptionLogger() {
+<a class="jxr_linenumber" name="115" href="#115">115</a> 
+<a class="jxr_linenumber" name="116" href="#116">116</a>             <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> Log log = LogFactory.getLog(AbstractAsyncTest.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="117" href="#117">117</a> 
+<a class="jxr_linenumber" name="118" href="#118">118</a>             @Override
+<a class="jxr_linenumber" name="119" href="#119">119</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> log(<strong class="jxr_keyword">final</strong> Exception ex) {
+<a class="jxr_linenumber" name="120" href="#120">120</a>                 log.error(ex.getMessage(), ex);
+<a class="jxr_linenumber" name="121" href="#121">121</a>             }
+<a class="jxr_linenumber" name="122" href="#122">122</a>         });
+<a class="jxr_linenumber" name="123" href="#123">123</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.scheme.equals(ProtocolScheme.https)) {
+<a class="jxr_linenumber" name="124" href="#124">124</a>             <strong class="jxr_keyword">this</strong>.serverBootstrap.setSslContext(createServerSSLContext());
+<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>         <strong class="jxr_keyword">final</strong> RegistryBuilder&lt;SchemeIOSessionStrategy&gt; builder = RegistryBuilder.create();
+<a class="jxr_linenumber" name="128" href="#128">128</a>         builder.register(<span class="jxr_string">"http"</span>, NoopIOSessionStrategy.INSTANCE);
+<a class="jxr_linenumber" name="129" href="#129">129</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.scheme.equals(ProtocolScheme.https)) {
+<a class="jxr_linenumber" name="130" href="#130">130</a>             builder.register(<span class="jxr_string">"https"</span>, <strong class="jxr_keyword">new</strong> SSLIOSessionStrategy(
+<a class="jxr_linenumber" name="131" href="#131">131</a>                     createClientSSLContext(),
+<a class="jxr_linenumber" name="132" href="#132">132</a>                     <strong class="jxr_keyword">new</strong> DefaultHostnameVerifier()));
+<a class="jxr_linenumber" name="133" href="#133">133</a>         }
+<a class="jxr_linenumber" name="134" href="#134">134</a>         <strong class="jxr_keyword">final</strong> Registry&lt;SchemeIOSessionStrategy&gt; registry =  builder.build();
+<a class="jxr_linenumber" name="135" href="#135">135</a>         <strong class="jxr_keyword">final</strong> DefaultConnectingIOReactor ioReactor = <strong class="jxr_keyword">new</strong> DefaultConnectingIOReactor(ioReactorConfig);
+<a class="jxr_linenumber" name="136" href="#136">136</a>         <strong class="jxr_keyword">this</strong>.connMgr = <strong class="jxr_keyword">new</strong> PoolingNHttpClientConnectionManager(ioReactor, registry);
+<a class="jxr_linenumber" name="137" href="#137">137</a>     }
+<a class="jxr_linenumber" name="138" href="#138">138</a> 
+<a class="jxr_linenumber" name="139" href="#139">139</a>     @After
+<a class="jxr_linenumber" name="140" href="#140">140</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> shutDown() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="141" href="#141">141</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.server != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="142" href="#142">142</a>             <strong class="jxr_keyword">this</strong>.server.shutdown(10, TimeUnit.SECONDS);
+<a class="jxr_linenumber" name="143" href="#143">143</a>         }
+<a class="jxr_linenumber" name="144" href="#144">144</a>     }
+<a class="jxr_linenumber" name="145" href="#145">145</a> 
+<a class="jxr_linenumber" name="146" href="#146">146</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/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=1675075&r1=1675074&r2=1675075&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 Tue Apr 21 09:46:17 2015
@@ -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-beta1 Reference Package org.apache.http.localserver</title>
+		<title>Apache HttpAsyncClient 4.1 Reference Package org.apache.http.localserver</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -39,9 +39,6 @@
           	          	<li>
             	<a href="ResponseBasicUnauthorized.html" target="classFrame">ResponseBasicUnauthorized</a>
           	</li>
-          	          	<li>
-            	<a href="SSLTestContexts.html" target="classFrame">SSLTestContexts</a>
-          	</li>
           	      	</ul>
 
 	</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=1675075&r1=1675074&r2=1675075&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 Tue Apr 21 09:46:17 2015
@@ -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-beta1 Reference Package org.apache.http.localserver</title>
+		<title>Apache HttpAsyncClient 4.1 Reference Package org.apache.http.localserver</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -75,11 +75,6 @@
                 		<a href="ResponseBasicUnauthorized.html" target="classFrame">ResponseBasicUnauthorized</a>
               		</td>
             	</tr>
-				            	<tr>
-              		<td>
-                		<a href="SSLTestContexts.html" target="classFrame">SSLTestContexts</a>
-              		</td>
-            	</tr>
 				        	</tbody>
       	</table>
 		
@@ -102,6 +97,6 @@
         	</ul>
       	</div>
 				<hr />
-		Copyright &#169; 2010-2014 The Apache Software Foundation. All Rights Reserved.
+		Copyright &#169; 2010-2015 The Apache Software Foundation. All Rights Reserved.
 	</body>
 </html>



Mime
View raw message