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

pack-priv Class MinimalHttpClient

extends CloseableHttpClient
Class Inheritance
Annotations
@Contract
threading:SAFE_CONDITIONAL
@SuppressWarnings:deprecation
Imports
java.io.IOException, java.util.concurrent.TimeUnit, org.apache.http.HttpException, .HttpHost, .HttpRequest, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.client.ClientProtocolException, org.apache.http.client.config.RequestConfig, org.apache.http.client.methods.CloseableHttpResponse, .Configurable, .HttpExecutionAware, .HttpRequestWrapper, org.apache.http.client.protocol.HttpClientContext, org.apache.http.conn.ClientConnectionManager, .ClientConnectionRequest, .HttpClientConnectionManager, .ManagedClientConnection, org.apache.http.conn.routing.HttpRoute, org.apache.http.conn.scheme.SchemeRegistry, org.apache.http.impl.DefaultConnectionReuseStrategy, org.apache.http.impl.execchain.MinimalClientExec, org.apache.http.params.BasicHttpParams, .HttpParams, org.apache.http.protocol.BasicHttpContext, .HttpContext, .HttpRequestExecutor, org.apache.http.util.Args

Internal class.
Since
4.3

Field Summary

Modifier and TypeField and Description
private final HttpClientConnectionManager
private final HttpParams
params

Deprecated as a consequence of HttpParams being deprecated.
private final MinimalClientExec

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.
protected CloseableHttpResponse
doExecute(final HttpHost target, final HttpRequest request, final HttpContext context)

Implements abstract org.apache.http.impl.client.CloseableHttpClient.doExecute.

public ClientConnectionManager
getConnectionManager()

Implements org.apache.http.client.HttpClient.getConnectionManager.

Deprecated as a consequence of ClientConnectionManager being deprecated.
Obtains the connection manager used by this client.
public HttpParams
getParams()

Implements org.apache.http.client.HttpClient.getParams.

Deprecated as a consequence of HttpParams being deprecated.
Obtains the parameters for this client.
Inherited from org.apache.http.impl.client.CloseableHttpClient:
executeexecuteexecuteexecuteexecuteexecuteexecuteexecute

Field Detail

connManagerback to summary
private final HttpClientConnectionManager connManager
paramsback to summary
private final HttpParams params

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

requestExecutorback to summary
private final MinimalClientExec requestExecutor

Constructor Detail

MinimalHttpClientback to summary
public MinimalHttpClient(final HttpClientConnectionManager connManager)

Method Detail

closeback to summary
public void close()

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
doExecuteback to summary
protected CloseableHttpResponse doExecute(final HttpHost target, final HttpRequest request, final HttpContext context) throws IOException, ClientProtocolException

Implements abstract org.apache.http.impl.client.CloseableHttpClient.doExecute.

Annotations
@Override
getConnectionManagerback to summary
public ClientConnectionManager getConnectionManager()

Implements org.apache.http.client.HttpClient.getConnectionManager.

Doc from org.apache.http.client.HttpClient.getConnectionManager.

Deprecated

as a consequence of ClientConnectionManager being deprecated. See corresponding docs for further information.

Obtains the connection manager used by this client.

Returns:ClientConnectionManager

the connection manager

Annotations
@Override
getParamsback to summary
public HttpParams getParams()

Implements org.apache.http.client.HttpClient.getParams.

Doc from org.apache.http.client.HttpClient.getParams.

Deprecated

as a consequence of HttpParams being deprecated. See corresponding docs for further information.

Obtains the parameters for this client. These parameters will become defaults for all requests being executed with this client, and for the parameters of dependent objects in this client.

Returns:HttpParams

the default parameters

Annotations
@Override