You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2014/10/10 21:48:56 UTC
svn commit: r1630965 [2/2] - in /httpcomponents/httpasyncclient/trunk:
httpasyncclient-cache/src/main/java/org/apache/http/impl/client/cache/
httpasyncclient-cache/src/test/java/org/apache/http/impl/client/cache/
httpasyncclient/src/examples/org/apache...
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthentication.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthentication.java?rev=1630965&r1=1630964&r2=1630965&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthentication.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthentication.java Fri Oct 10 19:48:55 2014
@@ -110,6 +110,7 @@ public class TestClientAuthentication ex
this(true);
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -168,6 +169,7 @@ public class TestClientAuthentication ex
this.authTokenExtractor = new BasicAuthTokenExtractor();
}
+ @Override
public void verify(
final HttpAsyncExchange httpexchange,
final HttpContext context) throws HttpException, IOException {
@@ -197,14 +199,17 @@ public class TestClientAuthentication ex
this.creds = creds;
}
+ @Override
public void clear() {
}
+ @Override
public Credentials getCredentials(final AuthScope authscope) {
this.authscope = authscope;
return this.creds;
}
+ @Override
public void setCredentials(final AuthScope authscope, final Credentials credentials) {
}
@@ -438,6 +443,7 @@ public class TestClientAuthentication ex
super();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthenticationFallBack.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthenticationFallBack.java?rev=1630965&r1=1630964&r2=1630965&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthenticationFallBack.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientAuthenticationFallBack.java Fri Oct 10 19:48:55 2014
@@ -67,6 +67,7 @@ public class TestClientAuthenticationFal
public class ResponseBasicUnauthorized implements HttpResponseInterceptor {
+ @Override
public void process(
final HttpResponse response,
final HttpContext context) throws HttpException, IOException {
@@ -80,6 +81,7 @@ public class TestClientAuthenticationFal
static class AuthHandler implements HttpRequestHandler {
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -106,14 +108,17 @@ public class TestClientAuthenticationFal
this.creds = creds;
}
+ @Override
public void clear() {
}
+ @Override
public Credentials getCredentials(final AuthScope authscope) {
this.authscope = authscope;
return this.creds;
}
+ @Override
public void setCredentials(final AuthScope authscope, final Credentials credentials) {
}
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientReauthentication.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientReauthentication.java?rev=1630965&r1=1630964&r2=1630965&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientReauthentication.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestClientReauthentication.java Fri Oct 10 19:48:55 2014
@@ -76,6 +76,7 @@ public class TestClientReauthentication
public class ResponseBasicUnauthorized implements HttpResponseInterceptor {
+ @Override
public void process(
final HttpResponse response,
final HttpContext context) throws HttpException, IOException {
@@ -90,6 +91,7 @@ public class TestClientReauthentication
private final AtomicLong count = new AtomicLong(0);
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -121,14 +123,17 @@ public class TestClientReauthentication
this.creds = creds;
}
+ @Override
public void clear() {
}
+ @Override
public Credentials getCredentials(final AuthScope authscope) {
this.authscope = authscope;
return this.creds;
}
+ @Override
public void setCredentials(final AuthScope authscope, final Credentials credentials) {
}
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java?rev=1630965&r1=1630964&r2=1630965&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java Fri Oct 10 19:48:55 2014
@@ -72,6 +72,7 @@ public class TestHttpAsyncPrematureTermi
public void testConnectionTerminatedProcessingRequest() throws Exception {
this.serverBootstrap.registerHandler("*", new HttpAsyncRequestHandler<HttpRequest>() {
+ @Override
public HttpAsyncRequestConsumer<HttpRequest> processRequest(
final HttpRequest request,
final HttpContext context) throws HttpException, IOException {
@@ -81,6 +82,7 @@ public class TestHttpAsyncPrematureTermi
return new BasicAsyncRequestConsumer();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpAsyncExchange httpExchange,
@@ -99,14 +101,17 @@ public class TestHttpAsyncPrematureTermi
final FutureCallback<HttpResponse> callback = new FutureCallback<HttpResponse>() {
+ @Override
public void cancelled() {
latch.countDown();
}
+ @Override
public void failed(final Exception ex) {
latch.countDown();
}
+ @Override
public void completed(final HttpResponse response) {
Assert.fail();
}
@@ -121,12 +126,14 @@ public class TestHttpAsyncPrematureTermi
public void testConnectionTerminatedHandlingRequest() throws Exception {
this.serverBootstrap.registerHandler("*", new HttpAsyncRequestHandler<HttpRequest>() {
+ @Override
public HttpAsyncRequestConsumer<HttpRequest> processRequest(
final HttpRequest request,
final HttpContext context) throws HttpException, IOException {
return new BasicAsyncRequestConsumer();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpAsyncExchange httpExchange,
@@ -148,14 +155,17 @@ public class TestHttpAsyncPrematureTermi
final FutureCallback<HttpResponse> callback = new FutureCallback<HttpResponse>() {
+ @Override
public void cancelled() {
latch.countDown();
}
+ @Override
public void failed(final Exception ex) {
latch.countDown();
}
+ @Override
public void completed(final HttpResponse response) {
Assert.fail();
}
@@ -170,12 +180,14 @@ public class TestHttpAsyncPrematureTermi
public void testConnectionTerminatedSendingResponse() throws Exception {
this.serverBootstrap.registerHandler("*", new HttpAsyncRequestHandler<HttpRequest>() {
+ @Override
public HttpAsyncRequestConsumer<HttpRequest> processRequest(
final HttpRequest request,
final HttpContext context) throws HttpException, IOException {
return new BasicAsyncRequestConsumer();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpAsyncExchange httpExchange,
@@ -203,14 +215,17 @@ public class TestHttpAsyncPrematureTermi
final FutureCallback<HttpResponse> callback = new FutureCallback<HttpResponse>() {
+ @Override
public void cancelled() {
latch.countDown();
}
+ @Override
public void failed(final Exception ex) {
latch.countDown();
}
+ @Override
public void completed(final HttpResponse response) {
Assert.fail();
}
@@ -253,24 +268,29 @@ public class TestHttpAsyncPrematureTermi
failed.set(true);
}
+ @Override
public void responseReceived(
final HttpResponse response) throws IOException, HttpException {
throw new IllegalStateException();
}
+ @Override
public void consumeContent(
final ContentDecoder decoder, final IOControl ioctrl) throws IOException {
throw new IllegalStateException();
}
+ @Override
public void responseCompleted(final HttpContext context) {
throw new IllegalStateException();
}
+ @Override
public Exception getException() {
return null;
}
+ @Override
public String getResult() {
return null;
}
@@ -330,21 +350,26 @@ public class TestHttpAsyncPrematureTermi
public void failed(final Exception ex) {
}
+ @Override
public void responseReceived(
final HttpResponse response) throws IOException, HttpException {
}
+ @Override
public void consumeContent(
final ContentDecoder decoder, final IOControl ioctrl) throws IOException {
}
+ @Override
public void responseCompleted(final HttpContext context) {
}
+ @Override
public Exception getException() {
return null;
}
+ @Override
public String getResult() {
return null;
}
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestRedirects.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestRedirects.java?rev=1630965&r1=1630964&r2=1630965&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestRedirects.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestRedirects.java Fri Oct 10 19:48:55 2014
@@ -105,6 +105,7 @@ public class TestRedirects extends HttpA
this.statuscode = statuscode;
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -134,6 +135,7 @@ public class TestRedirects extends HttpA
super();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -158,6 +160,7 @@ public class TestRedirects extends HttpA
super();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -183,6 +186,7 @@ public class TestRedirects extends HttpA
super();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -215,6 +219,7 @@ public class TestRedirects extends HttpA
this.absolute = absolute;
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -247,6 +252,7 @@ public class TestRedirects extends HttpA
super();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -331,6 +337,7 @@ public class TestRedirects extends HttpA
public void testBasicRedirect302NoLocation() throws Exception {
this.serverBootstrap.registerHandler("*", new BasicAsyncRequestHandler(new HttpRequestHandler() {
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -699,6 +706,7 @@ public class TestRedirects extends HttpA
this.host = host;
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestStatefulConnManagement.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestStatefulConnManagement.java?rev=1630965&r1=1630964&r2=1630965&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestStatefulConnManagement.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestStatefulConnManagement.java Fri Oct 10 19:48:55 2014
@@ -65,6 +65,7 @@ public class TestStatefulConnManagement
super();
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,
@@ -81,6 +82,7 @@ public class TestStatefulConnManagement
final UserTokenHandler userTokenHandler = new UserTokenHandler() {
+ @Override
public Object getUserToken(final HttpContext context) {
return context.getAttribute("user");
}
@@ -221,6 +223,7 @@ public class TestStatefulConnManagement
// one to the same route.
final UserTokenHandler userTokenHandler = new UserTokenHandler() {
+ @Override
public Object getUserToken(final HttpContext context) {
return context.getAttribute("user");
}
Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/methods/TestZeroCopy.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/methods/TestZeroCopy.java?rev=1630965&r1=1630964&r2=1630965&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/methods/TestZeroCopy.java (original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/methods/TestZeroCopy.java Fri Oct 10 19:48:55 2014
@@ -158,6 +158,7 @@ public class TestZeroCopy extends HttpAs
this.forceChunking = forceChunking;
}
+ @Override
public void handle(
final HttpRequest request,
final HttpResponse response,