class MainClientExec extends java.lang.Object implements InternalClientExec
| Modifier and Type | Field and Description |
|---|---|
private org.apache.http.impl.auth.HttpAuthenticator |
authenticator |
private org.apache.http.protocol.HttpProcessor |
httpProcessor |
private org.apache.commons.logging.Log |
log |
private org.apache.http.client.AuthenticationStrategy |
proxyAuthStrategy |
private org.apache.http.protocol.HttpProcessor |
proxyHttpProcessor |
private org.apache.http.client.RedirectStrategy |
redirectStrategy |
private org.apache.http.conn.routing.HttpRouteDirector |
routeDirector |
private org.apache.http.conn.routing.HttpRoutePlanner |
routePlanner |
private org.apache.http.client.AuthenticationStrategy |
targetAuthStrategy |
private org.apache.http.client.UserTokenHandler |
userTokenHandler |
| Constructor and Description |
|---|
MainClientExec(org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.conn.routing.HttpRoutePlanner routePlanner,
org.apache.http.client.RedirectStrategy redirectStrategy,
org.apache.http.client.AuthenticationStrategy targetAuthStrategy,
org.apache.http.client.AuthenticationStrategy proxyAuthStrategy,
org.apache.http.client.UserTokenHandler userTokenHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeContent(InternalState state,
org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioctrl) |
private org.apache.http.HttpRequest |
createConnectRequest(org.apache.http.conn.routing.HttpRoute route,
InternalState state) |
org.apache.http.HttpRequest |
generateRequest(InternalState state,
AbstractClientExchangeHandler handler) |
private boolean |
handleConnectResponse(InternalState state,
AbstractClientExchangeHandler handler) |
private boolean |
handleResponse(InternalState state,
AbstractClientExchangeHandler handler) |
private boolean |
needAuthentication(InternalState state,
AbstractClientExchangeHandler handler) |
void |
prepare(org.apache.http.HttpHost target,
org.apache.http.HttpRequest original,
InternalState state,
AbstractClientExchangeHandler handler) |
private void |
prepareRequest(InternalState state,
AbstractClientExchangeHandler handler) |
void |
produceContent(InternalState state,
org.apache.http.nio.ContentEncoder encoder,
org.apache.http.nio.IOControl ioctrl) |
void |
requestCompleted(InternalState state,
AbstractClientExchangeHandler handler) |
void |
responseCompleted(InternalState state,
AbstractClientExchangeHandler handler) |
void |
responseReceived(org.apache.http.HttpResponse response,
InternalState state,
AbstractClientExchangeHandler handler) |
private void |
rewriteRequestURI(org.apache.http.client.methods.HttpRequestWrapper request,
org.apache.http.conn.routing.HttpRoute route) |
private final org.apache.commons.logging.Log log
private final org.apache.http.protocol.HttpProcessor httpProcessor
private final org.apache.http.protocol.HttpProcessor proxyHttpProcessor
private final org.apache.http.conn.routing.HttpRoutePlanner routePlanner
private final org.apache.http.client.AuthenticationStrategy targetAuthStrategy
private final org.apache.http.client.AuthenticationStrategy proxyAuthStrategy
private final org.apache.http.client.UserTokenHandler userTokenHandler
private final org.apache.http.client.RedirectStrategy redirectStrategy
private final org.apache.http.conn.routing.HttpRouteDirector routeDirector
private final org.apache.http.impl.auth.HttpAuthenticator authenticator
public MainClientExec(org.apache.http.protocol.HttpProcessor httpProcessor,
org.apache.http.conn.routing.HttpRoutePlanner routePlanner,
org.apache.http.client.RedirectStrategy redirectStrategy,
org.apache.http.client.AuthenticationStrategy targetAuthStrategy,
org.apache.http.client.AuthenticationStrategy proxyAuthStrategy,
org.apache.http.client.UserTokenHandler userTokenHandler)
public void prepare(org.apache.http.HttpHost target,
org.apache.http.HttpRequest original,
InternalState state,
AbstractClientExchangeHandler handler)
throws org.apache.http.HttpException,
java.io.IOException
prepare in interface InternalClientExecorg.apache.http.HttpExceptionjava.io.IOExceptionpublic org.apache.http.HttpRequest generateRequest(InternalState state, AbstractClientExchangeHandler handler) throws java.io.IOException, org.apache.http.HttpException
generateRequest in interface InternalClientExecjava.io.IOExceptionorg.apache.http.HttpExceptionpublic void produceContent(InternalState state, org.apache.http.nio.ContentEncoder encoder, org.apache.http.nio.IOControl ioctrl) throws java.io.IOException
produceContent in interface InternalClientExecjava.io.IOExceptionpublic void requestCompleted(InternalState state, AbstractClientExchangeHandler handler)
requestCompleted in interface InternalClientExecpublic void responseReceived(org.apache.http.HttpResponse response,
InternalState state,
AbstractClientExchangeHandler handler)
throws java.io.IOException,
org.apache.http.HttpException
responseReceived in interface InternalClientExecjava.io.IOExceptionorg.apache.http.HttpExceptionpublic void consumeContent(InternalState state, org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl) throws java.io.IOException
consumeContent in interface InternalClientExecjava.io.IOExceptionpublic void responseCompleted(InternalState state, AbstractClientExchangeHandler handler) throws java.io.IOException, org.apache.http.HttpException
responseCompleted in interface InternalClientExecjava.io.IOExceptionorg.apache.http.HttpExceptionprivate void rewriteRequestURI(org.apache.http.client.methods.HttpRequestWrapper request,
org.apache.http.conn.routing.HttpRoute route)
throws org.apache.http.ProtocolException
org.apache.http.ProtocolExceptionprivate void prepareRequest(InternalState state, AbstractClientExchangeHandler handler) throws java.io.IOException, org.apache.http.HttpException
java.io.IOExceptionorg.apache.http.HttpExceptionprivate org.apache.http.HttpRequest createConnectRequest(org.apache.http.conn.routing.HttpRoute route,
InternalState state)
throws java.io.IOException,
org.apache.http.HttpException
java.io.IOExceptionorg.apache.http.HttpExceptionprivate boolean handleConnectResponse(InternalState state, AbstractClientExchangeHandler handler) throws org.apache.http.HttpException
org.apache.http.HttpExceptionprivate boolean handleResponse(InternalState state, AbstractClientExchangeHandler handler) throws org.apache.http.HttpException
org.apache.http.HttpExceptionprivate boolean needAuthentication(InternalState state, AbstractClientExchangeHandler handler) throws org.apache.http.HttpException
org.apache.http.HttpException