HttpClientBuilder
@Deprecated @Contract(threading=SAFE_CONDITIONAL) public class ContentEncodingHttpClient extends DefaultHttpClient
DefaultHttpClient子类,其中包含RequestAcceptEncoding的请求和响应。
弃用笔记:由于此类修改响应正文而不更改响应标头以反映实体更改的方式,因此不能将其用作缓存的“后端” HttpClient,并且仍将缓存未压缩的响应。
鼓励用户使用DecompressingHttpClient而不是此类,可以在缓存之前或之后连接,具体取决于您是要以压缩或未压缩形式缓存响应。
| Constructor and Description |
|---|
ContentEncodingHttpClient()
已过时。
|
ContentEncodingHttpClient(ClientConnectionManager conman, HttpParams params)
已过时。
从参数和连接管理器创建一个新的HTTP客户端。
|
ContentEncodingHttpClient(HttpParams params)
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
protected BasicHttpProcessor |
createHttpProcessor()
已过时。
|
createHttpParams, setDefaultHttpParamsaddRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, close, createAuthSchemeRegistry, createClientConnectionManager, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, 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 ContentEncodingHttpClient(ClientConnectionManager conman, HttpParams params)
params - 参数
conman - 连接管理器
public ContentEncodingHttpClient(HttpParams params)
params -
public ContentEncodingHttpClient()
protected BasicHttpProcessor createHttpProcessor()
createHttpProcessor在
DefaultHttpClient
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.