public class Executor extends Object
PoolingHttpClientConnectionManager
with maximum 100 connections per route and
a total maximum of 200 connections is used internally.Modifier and Type | Method and Description |
---|---|
Executor |
auth(AuthScope authScope,
Credentials creds) |
Executor |
auth(Credentials cred) |
Executor |
auth(HttpHost host,
Credentials creds) |
Executor |
auth(HttpHost host,
String username,
String password) |
Executor |
auth(HttpHost host,
String username,
String password,
String workstation,
String domain) |
Executor |
auth(String username,
String password) |
Executor |
auth(String username,
String password,
String workstation,
String domain) |
Executor |
authPreemptive(HttpHost host) |
Executor |
authPreemptiveProxy(HttpHost host) |
Executor |
clearAuth() |
Executor |
clearCookies() |
Executor |
cookieStore(CookieStore cookieStore) |
Response |
execute(Request request)
Executes the request.
|
static Executor |
newInstance() |
static Executor |
newInstance(HttpClient httpclient) |
static void |
registerScheme(Scheme scheme)
Deprecated.
(4.3) do not use.
|
static void |
unregisterScheme(String name)
Deprecated.
(4.3) do not use.
|
public static Executor newInstance()
public static Executor newInstance(HttpClient httpclient)
public Executor auth(AuthScope authScope, Credentials creds)
public Executor auth(HttpHost host, Credentials creds)
public Executor auth(Credentials cred)
public Executor auth(HttpHost host, String username, String password, String workstation, String domain)
public Executor clearAuth()
public Executor cookieStore(CookieStore cookieStore)
public Executor clearCookies()
public Response execute(Request request) throws ClientProtocolException, IOException
Response.discardContent()
, otherwise the
connection used for the request might not be released to the pool.@Deprecated public static void registerScheme(Scheme scheme)
@Deprecated public static void unregisterScheme(String name)
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.