Modifier and Type | Method and Description |
---|---|
Executor |
auth(AuthScope authScope,
Credentials credentials) |
Executor |
auth(org.apache.hc.core5.http.HttpHost host,
Credentials credentials) |
Executor |
auth(org.apache.hc.core5.http.HttpHost host,
String username,
char[] password) |
Executor |
auth(org.apache.hc.core5.http.HttpHost host,
String username,
char[] password,
String workstation,
String domain)
Deprecated.
|
Executor |
auth(String host,
Credentials credentials) |
Executor |
authPreemptive(org.apache.hc.core5.http.HttpHost host) |
Executor |
authPreemptive(String host) |
Executor |
authPreemptiveProxy(org.apache.hc.core5.http.HttpHost proxy) |
Executor |
authPreemptiveProxy(String proxy) |
Executor |
clearAuth() |
Executor |
clearCookies() |
Response |
execute(Request request)
Executes the request.
|
static Executor |
newInstance() |
static Executor |
newInstance(CloseableHttpClient httpclient) |
Executor |
use(CookieStore cookieStore) |
Executor |
use(CredentialsStore credentialsStore) |
public static Executor newInstance()
public static Executor newInstance(CloseableHttpClient httpclient)
public Executor use(CredentialsStore credentialsStore)
public Executor auth(AuthScope authScope, Credentials credentials)
public Executor auth(org.apache.hc.core5.http.HttpHost host, Credentials credentials)
public Executor auth(String host, Credentials credentials)
public Executor authPreemptive(org.apache.hc.core5.http.HttpHost host)
public Executor authPreemptiveProxy(org.apache.hc.core5.http.HttpHost proxy)
public Executor authPreemptiveProxy(String proxy)
@Deprecated public Executor auth(org.apache.hc.core5.http.HttpHost host, String username, char[] password, String workstation, String domain)
auth(HttpHost, String, char[])
.public Executor clearAuth()
public Executor use(CookieStore cookieStore)
public Executor clearCookies()
public Response execute(Request request) throws IOException
Response.discardContent()
, otherwise the
connection used for the request might not be released to the pool.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.