public class Executor extends Object
A PoolingHttpClientConnectionManager
with maximum 100 connections per route and
a total maximum of 200 connections is used internally.
public static Executor newInstance()
public static Executor newInstance(HttpClient httpclient)
public Executor use(CredentialsProvider credentialsProvider)
public Executor auth(AuthScope authScope, Credentials creds)
public Executor auth(HttpHost host, Credentials creds)
public Executor auth(String host, Credentials creds)
public Executor auth(Credentials cred)
public Executor auth(HttpHost host, String username, String password, String workstation, String domain)
public Executor clearAuth()
@Deprecated public Executor cookieStore(CookieStore cookieStore)
use(CookieStore)
.public Executor use(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)
public static void closeIdleConnections()
Copyright © 2010 - 2020 Adobe. All Rights Reserved