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 HttpClientConnectionManager
connManager
private org.apache.http.params.HttpParams
params
private MinimalClientExec
requestExecutor
-
Constructor Summary
Constructors Constructor Description MinimalHttpClient(HttpClientConnectionManager connManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected CloseableHttpResponse
doExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
ClientConnectionManager
getConnectionManager()
Obtains the connection manager used by this client.org.apache.http.params.HttpParams
getParams()
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:
doExecute
in classCloseableHttpClient
- Throws:
java.io.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
public ClientConnectionManager getConnectionManager()
Description copied from interface:HttpClient
Obtains the connection manager used by this client.- Returns:
- the connection manager
-
-