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(org.apache.http.auth.AuthScope authScope, org.apache.http.auth.Credentials creds) auth(org.apache.http.auth.Credentials cred) auth(org.apache.http.HttpHost host, String username, String password, String workstation, String domain) auth(org.apache.http.HttpHost host, org.apache.http.auth.Credentials creds) authPreemptive(String host) authPreemptive(org.apache.http.HttpHost host) authPreemptiveProxy(String proxy) authPreemptiveProxy(org.apache.http.HttpHost proxy) static voidCloses all idle persistent connections used by the internal pool.cookieStore(org.apache.http.client.CookieStore cookieStore) Deprecated.Executes the request.static Executorstatic ExecutornewInstance(org.apache.http.client.HttpClient httpclient) static voidregisterScheme(org.apache.http.conn.scheme.Scheme scheme) Deprecated.(4.3) do not use.static voidunregisterScheme(String name) Deprecated.(4.3) do not use.use(org.apache.http.client.CookieStore cookieStore) use(org.apache.http.client.CredentialsProvider credentialsProvider)
-
Method Details
-
newInstance
-
newInstance
-
use
- Since:
- 4.5
-
auth
public Executor auth(org.apache.http.auth.AuthScope authScope, org.apache.http.auth.Credentials creds) -
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
public Response execute(Request request) throws org.apache.http.client.ClientProtocolException, IOException 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:
org.apache.http.client.ClientProtocolExceptionIOException- 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).