Package org.apache.http.impl.client
Class MinimalHttpClient
- java.lang.Object
-
- org.apache.http.impl.client.CloseableHttpClient
-
- org.apache.http.impl.client.MinimalHttpClient
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,HttpClient
@Contract(threading=SAFE_CONDITIONAL) class MinimalHttpClient extends CloseableHttpClient
Internal class.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description private HttpClientConnectionManagerconnManagerprivate org.apache.http.params.HttpParamsparamsprivate MinimalClientExecrequestExecutor
-
Constructor Summary
Constructors Constructor Description MinimalHttpClient(HttpClientConnectionManager connManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected CloseableHttpResponsedoExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)ClientConnectionManagergetConnectionManager()Obtains the connection manager used by this client.org.apache.http.params.HttpParamsgetParams()Obtains the parameters for this client.
-
-
-
Field Detail
-
connManager
private final HttpClientConnectionManager connManager
-
requestExecutor
private final MinimalClientExec requestExecutor
-
params
private final org.apache.http.params.HttpParams params
-
-
Constructor Detail
-
MinimalHttpClient
public MinimalHttpClient(HttpClientConnectionManager connManager)
-
-
Method Detail
-
doExecute
protected CloseableHttpResponse doExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws java.io.IOException, ClientProtocolException
- Specified by:
doExecutein classCloseableHttpClient- Throws:
java.io.IOExceptionClientProtocolException
-
getParams
public org.apache.http.params.HttpParams getParams()
Description copied from interface:HttpClientObtains 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:
- the default parameters
-
close
public void close()
-
getConnectionManager
public ClientConnectionManager getConnectionManager()
Description copied from interface:HttpClientObtains the connection manager used by this client.- Returns:
- the connection manager
-
-