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 HttpClientConnectionManager
private final org.apache.http.params.HttpParams
private final MinimalClientExec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected CloseableHttpResponse
doExecute
(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.HttpParams
Obtains 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:
doExecute
in classCloseableHttpClient
- Throws:
IOException
ClientProtocolException
-
getParams
public org.apache.http.params.HttpParams getParams()Description copied from interface:HttpClient
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:
- the default parameters
-
close
public void close() -
getConnectionManager
Description copied from interface:HttpClient
Obtains the connection manager used by this client.- Returns:
- the connection manager
-