Top Description Fields Constructors Methods
org.apache.http.impl.execchain

public Class MinimalClientExec

extends Object
implements ClientExecChain
Class Inheritance
All Implemented Interfaces
org.apache.http.impl.execchain.ClientExecChain
Annotations
@Contract
threading:IMMUTABLE_CONDITIONAL
Imports
java.io.IOException, .InterruptedIOException, java.net.URI, .URISyntaxException, java.util.concurrent.ExecutionException, .TimeUnit, org.apache.commons.logging.Log, .LogFactory, org.apache.http.ConnectionReuseStrategy, .HttpClientConnection, .HttpEntity, .HttpException, .HttpHost, .HttpRequest, .HttpResponse, .ProtocolException, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.client.config.RequestConfig, org.apache.http.client.methods.CloseableHttpResponse, .HttpExecutionAware, .HttpRequestWrapper, .HttpUriRequest, org.apache.http.client.protocol.HttpClientContext, .RequestClientConnControl, org.apache.http.client.utils.URIUtils, org.apache.http.conn.ConnectionKeepAliveStrategy, .ConnectionRequest, .HttpClientConnectionManager, org.apache.http.conn.routing.HttpRoute, org.apache.http.impl.conn.ConnectionShutdownException, org.apache.http.protocol.HttpCoreContext, .HttpProcessor, .HttpRequestExecutor, .ImmutableHttpProcessor, .RequestContent, .RequestTargetHost, .RequestUserAgent, org.apache.http.util.Args, .VersionInfo

Request executor that implements the most fundamental aspects of the HTTP specification and the most straight-forward request / response exchange with the target server. This executor does not support execution via proxy and will make no attempts to retry the request in case of a redirect, authentication challenge or I/O error.
Since
4.3

Field Summary

Modifier and TypeField and Description
private final HttpClientConnectionManager
private final HttpProcessor
private final ConnectionKeepAliveStrategy
private final Log
private final HttpRequestExecutor
private final ConnectionReuseStrategy

Constructor Summary

AccessConstructor and Description
public
MinimalClientExec(final HttpRequestExecutor requestExecutor, final HttpClientConnectionManager connManager, final ConnectionReuseStrategy reuseStrategy, final ConnectionKeepAliveStrategy keepAliveStrategy)

Method Summary

Modifier and TypeMethod and Description
public CloseableHttpResponse
execute(final HttpRoute
connection route.
route
,
final HttpRequestWrapper
current request.
request
,
final HttpClientContext
current HTTP context.
context
,
final HttpExecutionAware
receiver of notifications of blocking I/O operations.
execAware
)

Implements org.apache.http.impl.execchain.ClientExecChain.execute.

Executes th request either by transmitting it to the target server or by passing it onto the next executor in the request execution chain.
pack-priv static void
rewriteRequestURI(final HttpRequestWrapper request, final HttpRoute route, final boolean normalizeUri)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connManagerback to summary
private final HttpClientConnectionManager connManager
httpProcessorback to summary
private final HttpProcessor httpProcessor
keepAliveStrategyback to summary
private final ConnectionKeepAliveStrategy keepAliveStrategy
logback to summary
private final Log log
requestExecutorback to summary
private final HttpRequestExecutor requestExecutor
reuseStrategyback to summary
private final ConnectionReuseStrategy reuseStrategy

Constructor Detail

MinimalClientExecback to summary
public MinimalClientExec(final HttpRequestExecutor requestExecutor, final HttpClientConnectionManager connManager, final ConnectionReuseStrategy reuseStrategy, final ConnectionKeepAliveStrategy keepAliveStrategy)

Method Detail

executeback to summary
public CloseableHttpResponse execute(final HttpRoute route, final HttpRequestWrapper request, final HttpClientContext context, final HttpExecutionAware execAware) throws IOException, HttpException

Implements org.apache.http.impl.execchain.ClientExecChain.execute.

Doc from org.apache.http.impl.execchain.ClientExecChain.execute.

Executes th request either by transmitting it to the target server or by passing it onto the next executor in the request execution chain.

Parameters
route:HttpRoute

connection route.

request:HttpRequestWrapper

current request.

context:HttpClientContext

current HTTP context.

execAware:HttpExecutionAware

receiver of notifications of blocking I/O operations.

Returns:CloseableHttpResponse

HTTP response either received from the opposite endpoint or generated locally.

Annotations
@Override
Exceptions
IOException:
in case of a I/O error. (this type of exceptions are potentially recoverable).
HttpException:
in case of an HTTP protocol error (usually this type of exceptions are non-recoverable).
rewriteRequestURIback to summary
pack-priv static void rewriteRequestURI(final HttpRequestWrapper request, final HttpRoute route, final boolean normalizeUri) throws ProtocolException