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:
Closeable,AutoCloseable,HttpClient
Internal class.
- Since:
- 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpClientConnectionManagerprivate final org.apache.http.params.HttpParamsprivate final MinimalClientExec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected CloseableHttpResponsedoExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) Obtains the connection manager used by this client.org.apache.http.params.HttpParamsObtains the parameters for this client.
-
Field Details
-
connManager
-
requestExecutor
-
params
private final org.apache.http.params.HttpParams params
-
-
Constructor Details
-
MinimalHttpClient
-
-
Method Details
-
doExecute
protected CloseableHttpResponse doExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws IOException, ClientProtocolException - Specified by:
doExecutein classCloseableHttpClient- Throws:
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
Description copied from interface:HttpClientObtains the connection manager used by this client.- Returns:
- the connection manager
-