public class RetryIfUnauthorizedResponseHandler<Intermediate,Final> extends Object implements HttpResponseHandler<RetryResponseHolder<Intermediate>,RetryResponseHolder<Final>>
| Constructor and Description |
|---|
RetryIfUnauthorizedResponseHandler(HttpResponseHandler<Intermediate,Final> httpResponseHandler) |
| Modifier and Type | Method and Description |
|---|---|
ClientResponse<RetryResponseHolder<Final>> |
done(ClientResponse<RetryResponseHolder<Intermediate>> clientResponse) |
void |
exceptionCaught(ClientResponse<RetryResponseHolder<Intermediate>> clientResponse,
Throwable throwable) |
ClientResponse<RetryResponseHolder<Intermediate>> |
handleChunk(ClientResponse<RetryResponseHolder<Intermediate>> clientResponse,
org.jboss.netty.handler.codec.http.HttpChunk httpChunk) |
ClientResponse<RetryResponseHolder<Intermediate>> |
handleResponse(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)
Handles the initial HttpResponse object that comes back from Netty.
|
public RetryIfUnauthorizedResponseHandler(HttpResponseHandler<Intermediate,Final> httpResponseHandler)
public ClientResponse<RetryResponseHolder<Intermediate>> handleResponse(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)
HttpResponseHandlerhandleResponse in interface HttpResponseHandler<RetryResponseHolder<Intermediate>,RetryResponseHolder<Final>>httpResponse - - response from Nettypublic ClientResponse<RetryResponseHolder<Intermediate>> handleChunk(ClientResponse<RetryResponseHolder<Intermediate>> clientResponse, org.jboss.netty.handler.codec.http.HttpChunk httpChunk)
handleChunk in interface HttpResponseHandler<RetryResponseHolder<Intermediate>,RetryResponseHolder<Final>>public ClientResponse<RetryResponseHolder<Final>> done(ClientResponse<RetryResponseHolder<Intermediate>> clientResponse)
done in interface HttpResponseHandler<RetryResponseHolder<Intermediate>,RetryResponseHolder<Final>>public void exceptionCaught(ClientResponse<RetryResponseHolder<Intermediate>> clientResponse, Throwable throwable)
exceptionCaught in interface HttpResponseHandler<RetryResponseHolder<Intermediate>,RetryResponseHolder<Final>>Copyright © 2011–2018. All rights reserved.