Package org.apache.http.client.fluent
Class Executor
- java.lang.Object
-
- org.apache.http.client.fluent.Executor
-
public class Executor extends Object
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
-
-
-
Method Detail
-
newInstance
public static Executor newInstance()
-
newInstance
public static Executor newInstance(HttpClient httpclient)
-
use
public Executor use(CredentialsProvider credentialsProvider)
- Since:
- 4.5
-
auth
public Executor auth(AuthScope authScope, Credentials creds)
-
auth
public Executor auth(HttpHost host, Credentials creds)
-
auth
public Executor auth(String host, Credentials creds)
- Since:
- 4.4
-
auth
public Executor auth(Credentials cred)
-
auth
public Executor auth(HttpHost host, String username, String password, String workstation, String domain)
-
clearAuth
public Executor clearAuth()
-
cookieStore
@Deprecated public Executor cookieStore(CookieStore cookieStore)
Deprecated.(4.5) Useuse(CookieStore)
.
-
use
public Executor use(CookieStore cookieStore)
- Since:
- 4.5
-
clearCookies
public Executor clearCookies()
-
execute
public Response execute(Request request) throws 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.
-
registerScheme
@Deprecated public static void registerScheme(Scheme scheme)
Deprecated.(4.3) do not use.
-
unregisterScheme
@Deprecated public static void unregisterScheme(String name)
Deprecated.(4.3) do not use.
-
closeIdleConnections
public static void closeIdleConnections()
Closes all idle persistent connections used by the internal pool.- Since:
- 4.4
-
-