Package org.apache.http.client.fluent
Class Executor
java.lang.Object
org.apache.http.client.fluent.Executor
An Executor for fluent requests.
A PoolingHttpClientConnectionManager
with maximum 100 connections per route and
a total maximum of 200 connections is used internally.
-
Method Summary
Modifier and TypeMethodDescriptionauth
(String host, Credentials creds) auth
(AuthScope authScope, Credentials creds) auth
(Credentials cred) auth
(HttpHost host, Credentials creds) authPreemptive
(String host) authPreemptive
(HttpHost host) authPreemptiveProxy
(String proxy) authPreemptiveProxy
(HttpHost proxy) static void
Closes all idle persistent connections used by the internal pool.cookieStore
(CookieStore cookieStore) Deprecated.Executes the request.static Executor
static Executor
newInstance
(HttpClient httpclient) static void
registerScheme
(Scheme scheme) Deprecated.(4.3) do not use.static void
unregisterScheme
(String name) Deprecated.(4.3) do not use.use
(CookieStore cookieStore) use
(CredentialsProvider credentialsProvider)
-
Method Details
-
newInstance
-
newInstance
-
use
- Since:
- 4.5
-
auth
-
auth
-
auth
- Since:
- 4.4
-
authPreemptive
-
authPreemptive
- Since:
- 4.4
-
authPreemptiveProxy
-
authPreemptiveProxy
- Since:
- 4.4
-
auth
-
auth
-
auth
-
auth
-
auth
-
clearAuth
-
cookieStore
Deprecated.(4.5) Useuse(CookieStore)
. -
use
- Since:
- 4.5
-
clearCookies
-
execute
Executes the request. Please Note that response content must be processed or discarded usingResponse.discardContent()
, otherwise the connection used for the request might not be released to the pool.- Throws:
ClientProtocolException
IOException
- See Also:
-
registerScheme
Deprecated.(4.3) do not use. -
unregisterScheme
Deprecated.(4.3) do not use. -
closeIdleConnections
public static void closeIdleConnections()Closes all idle persistent connections used by the internal pool.- Since:
- 4.4
-
use(CookieStore)
.