Class Executor
java.lang.Object
org.apache.hc.client5.http.fluent.Executor
Executor for
Request
s.
A connection pool with maximum 100 connections per route and a total maximum of 200 connections is used internally.
- Since:
- 4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AuthCache
(package private) static final CloseableHttpClient
private CookieStore
private CredentialsStore
private final CloseableHttpClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauth
(String host, Credentials credentials) auth
(AuthScope authScope, Credentials credentials) auth
(org.apache.hc.core5.http.HttpHost host, String username, char[] password, String workstation, String domain) Deprecated.auth
(org.apache.hc.core5.http.HttpHost host, Credentials credentials) authPreemptive
(String host) authPreemptive
(org.apache.hc.core5.http.HttpHost host) authPreemptiveProxy
(String proxy) authPreemptiveProxy
(org.apache.hc.core5.http.HttpHost proxy) Executes the request.static Executor
static Executor
newInstance
(CloseableHttpClient httpclient) use
(CredentialsStore credentialsStore) use
(CookieStore cookieStore)
-
Field Details
-
CLIENT
-
httpclient
-
authCache
-
credentialsStore
-
cookieStore
-
-
Constructor Details
-
Executor
Executor(CloseableHttpClient httpclient)
-
-
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
@Deprecated public Executor auth(org.apache.hc.core5.http.HttpHost host, String username, char[] password, String workstation, String domain) Deprecated. -
clearAuth
-
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:
IOException
- See Also:
-
auth(HttpHost, String, char[])
.