public abstract class AbstractPoolingHttpClient extends org.apache.http.impl.client.AbstractHttpClient implements CommonHttpClient
| Constructor and Description |
|---|
AbstractPoolingHttpClient(org.apache.http.conn.ClientConnectionManager connectionManager,
org.apache.http.params.HttpParams httpParams) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.conn.ClientConnectionManager |
createClientConnectionManager() |
protected org.apache.http.params.HttpParams |
createHttpParams() |
protected org.apache.http.protocol.BasicHttpProcessor |
createHttpProcessor() |
protected String |
readContent(org.apache.http.HttpResponse response,
Charset charset) |
void |
setConnectionsMaxPerRoute(int connectionsMaxPerRoute) |
void |
setConnectionsMaxTotal(int connectionsMaxTotal) |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setProxy(String host,
int port,
String username,
String password) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(int proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setRoute(org.apache.http.conn.routing.HttpRoute httpRoute,
int maxRequests) |
void |
setSocketTimeout(int socketTimeout) |
void |
setTimeouts(int connectionTimeout,
int socketTimeout) |
addRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, createAuthSchemeRegistry, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, createProxyAuthenticationHandler, createProxyAuthenticationStrategy, createRedirectHandler, createRequestExecutor, createTargetAuthenticationHandler, createTargetAuthenticationStrategy, createUserTokenHandler, determineParams, execute, execute, execute, execute, execute, execute, execute, execute, getAuthSchemes, getBackoffManager, getConnectionBackoffStrategy, getConnectionKeepAliveStrategy, getConnectionManager, getConnectionReuseStrategy, getCookieSpecs, getCookieStore, getCredentialsProvider, getHttpProcessor, getHttpRequestRetryHandler, getParams, getProxyAuthenticationHandler, getProxyAuthenticationStrategy, getRedirectHandler, getRedirectStrategy, getRequestExecutor, getRequestInterceptor, getRequestInterceptorCount, getResponseInterceptor, getResponseInterceptorCount, getRoutePlanner, getTargetAuthenticationHandler, getTargetAuthenticationStrategy, getUserTokenHandler, removeRequestInterceptorByClass, removeResponseInterceptorByClass, setAuthSchemes, setBackoffManager, setConnectionBackoffStrategy, setCookieSpecs, setCookieStore, setCredentialsProvider, setHttpRequestRetryHandler, setKeepAliveStrategy, setParams, setProxyAuthenticationHandler, setProxyAuthenticationStrategy, setRedirectHandler, setRedirectStrategy, setReuseStrategy, setRoutePlanner, setTargetAuthenticationHandler, setTargetAuthenticationStrategy, setUserTokenHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequestContent, requestContent, requestContent, requestContent, requestContent, requestContent, requestContent, requestContent, requestResource, requestResource, requestResource, requestResourcepublic AbstractPoolingHttpClient(org.apache.http.conn.ClientConnectionManager connectionManager,
org.apache.http.params.HttpParams httpParams)
public void setProxy(String host, int port, String username, String password)
setProxy in interface CommonHttpClientpublic void setProxyHost(String proxyHost)
public void setProxyPort(int proxyPort)
public void setProxyUsername(String proxyUsername)
public void setProxyPassword(String proxyPassword)
public void setTimeouts(int connectionTimeout,
int socketTimeout)
setTimeouts in interface CommonHttpClientpublic void setConnectionTimeout(int connectionTimeout)
public void setSocketTimeout(int socketTimeout)
public void setConnectionsMaxPerRoute(int connectionsMaxPerRoute)
public void setConnectionsMaxTotal(int connectionsMaxTotal)
protected org.apache.http.params.HttpParams createHttpParams()
createHttpParams in class org.apache.http.impl.client.AbstractHttpClientprotected org.apache.http.protocol.BasicHttpProcessor createHttpProcessor()
createHttpProcessor in class org.apache.http.impl.client.AbstractHttpClientprotected org.apache.http.conn.ClientConnectionManager createClientConnectionManager()
createClientConnectionManager in class org.apache.http.impl.client.AbstractHttpClientprotected String readContent(org.apache.http.HttpResponse response, Charset charset) throws IOException
IOExceptionpublic void setRoute(org.apache.http.conn.routing.HttpRoute httpRoute,
int maxRequests)
Copyright © 2013. All Rights Reserved.