HttpClientBuilder
@Contract(threading=SAFE_CONDITIONAL) @Deprecated public class SystemDefaultHttpClient extends DefaultHttpClient
DefaultHttpClient的扩展使用系统属性预先配置。
以下系统属性由此类考虑:
以下参数可用于自定义此类的行为:
CoreProtocolPNames.PROTOCOL_VERSION CoreProtocolPNames.STRICT_TRANSFER_ENCODING CoreProtocolPNames.HTTP_ELEMENT_CHARSET CoreProtocolPNames.USE_EXPECT_CONTINUE CoreProtocolPNames.WAIT_FOR_CONTINUE CoreProtocolPNames.USER_AGENT CoreConnectionPNames.TCP_NODELAY CoreConnectionPNames.SO_TIMEOUT CoreConnectionPNames.SO_LINGER CoreConnectionPNames.SO_REUSEADDR CoreConnectionPNames.SOCKET_BUFFER_SIZE CoreConnectionPNames.CONNECTION_TIMEOUT CoreConnectionPNames.MAX_LINE_LENGTH CoreConnectionPNames.MAX_HEADER_COUNT CoreConnectionPNames.STALE_CONNECTION_CHECK ConnRoutePNames.FORCED_ROUTE ConnRoutePNames.LOCAL_ADDRESS ConnRoutePNames.DEFAULT_PROXY CookieSpecPNames.DATE_PATTERNS CookieSpecPNames.SINGLE_COOKIE_HEADER AuthPNames.CREDENTIAL_CHARSET ClientPNames.COOKIE_POLICY ClientPNames.HANDLE_AUTHENTICATION ClientPNames.HANDLE_REDIRECTS ClientPNames.MAX_REDIRECTS ClientPNames.ALLOW_CIRCULAR_REDIRECTS ClientPNames.VIRTUAL_HOST ClientPNames.DEFAULT_HOST ClientPNames.DEFAULT_HEADERS ClientPNames.CONN_MANAGER_TIMEOUT | Constructor and Description |
|---|
SystemDefaultHttpClient()
已过时。
|
SystemDefaultHttpClient(HttpParams params)
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
protected ClientConnectionManager |
createClientConnectionManager()
已过时。
|
protected ConnectionReuseStrategy |
createConnectionReuseStrategy()
已过时。
|
protected HttpRoutePlanner |
createHttpRoutePlanner()
已过时。
|
createHttpParams, createHttpProcessor, setDefaultHttpParamsaddRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, close, createAuthSchemeRegistry, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createProxyAuthenticationHandler, createProxyAuthenticationStrategy, createRedirectHandler, createRequestExecutor, createTargetAuthenticationHandler, createTargetAuthenticationStrategy, createUserTokenHandler, determineParams, doExecute, 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, setUserTokenHandlerpublic SystemDefaultHttpClient(HttpParams params)
public SystemDefaultHttpClient()
protected ClientConnectionManager createClientConnectionManager()
protected HttpRoutePlanner createHttpRoutePlanner()
protected ConnectionReuseStrategy createConnectionReuseStrategy()
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.