Class Executor
java.lang.Object
org.apache.hc.client5.http.fluent.Executor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static CloseableHttpClientprivate final AuthCacheprivate static CloseableHttpClientprivate CookieStoreprivate CredentialsStoreprivate final CloseableHttpClientprivate static final ReentrantLock -
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.(package private) static CloseableHttpClient(package private) static CloseableHttpClientstatic Executorstatic ExecutornewInstance(CloseableHttpAsyncClient httpclient) This feature is considered experimental and may be discontinued in the future.static ExecutornewInstance(CloseableHttpClient httpclient) use(CredentialsStore credentialsStore) use(CookieStore cookieStore)
-
Field Details
-
LOCK
-
CLIENT
-
ASYNC_CLIENT
-
httpclient
-
authCache
-
credentialsStore
-
cookieStore
-
-
Constructor Details
-
Executor
Executor(CloseableHttpClient httpclient)
-
-
Method Details
-
GET_CLASSIC_CLIENT
-
GET_ASYNC_CLIENT
-
newInstance
-
newInstance
-
newInstance
This feature is considered experimental and may be discontinued in the future.- Since:
- 5.5
-
use
- Returns:
- this instance.
- Since:
- 4.5
-
auth
-
auth
-
auth
- Returns:
- this instance.
- Since:
- 4.4
-
authPreemptive
-
authPreemptive
-
authPreemptiveProxy
-
authPreemptiveProxy
-
auth
-
auth
@Deprecated public Executor auth(org.apache.hc.core5.http.HttpHost host, String username, char[] password, String workstation, String domain) Deprecated.- Returns:
- this instance.
-
clearAuth
-
use
- Returns:
- this instance.
- 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[]).