public abstract class AbstractHttpClient451 extends AbstractClientInterface implements ClientInterface
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowRedirects |
protected org.apache.http.impl.client.CloseableHttpClient |
httpClient |
protected org.apache.http.client.protocol.HttpClientContext |
httpClientContext |
protected String |
userAgent |
DEFAULT_REQUEST_CHARSET, httpConfigTemplate, httpTemplateManager
DEFAULT_BEAN_NAME
Constructor and Description |
---|
AbstractHttpClient451() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.http.conn.HttpClientConnectionManager |
buildHttpClientConnectionManager(Context context) |
void |
close() |
protected void |
dealBodyElement(org.apache.http.client.methods.HttpRequestBase method,
Charset requestCharset,
List<BodyElement> bodyElements) |
protected void |
dealCookies(org.apache.http.client.methods.HttpRequestBase method,
List<Cookie> cookies) |
protected void |
dealHeaders(org.apache.http.client.methods.HttpRequestBase method,
List<Header> headers) |
protected org.apache.http.client.methods.HttpRequestBase |
dealHttpMethod(Charset requestCharset,
Request request) |
void |
init(Context context)
初始化客户端
|
protected void |
initCertifiable(Certifiable cert) |
protected org.apache.http.impl.client.CloseableHttpClient |
initHttpClient(Context context) |
protected void |
initHttpClientContext(Context context) |
protected void |
initPasswordCert(PasswordCert cert) |
protected void |
initProxy(Proxy proxy) |
getCharset, getHttpTemplateManager, getInterceptorList, getUrl, setHttpTemplateManager, updateHttpConfigTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowMultiton, execute, getHttpTemplateManager, getInterceptorList
protected org.apache.http.impl.client.CloseableHttpClient httpClient
protected org.apache.http.client.protocol.HttpClientContext httpClientContext
protected boolean allowRedirects
protected String userAgent
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void init(Context context)
ClientInterface
init
in interface ClientInterface
protected org.apache.http.impl.client.CloseableHttpClient initHttpClient(Context context)
protected abstract org.apache.http.conn.HttpClientConnectionManager buildHttpClientConnectionManager(Context context)
protected void initHttpClientContext(Context context)
protected void initProxy(Proxy proxy)
protected void initCertifiable(Certifiable cert)
protected void initPasswordCert(PasswordCert cert)
protected org.apache.http.client.methods.HttpRequestBase dealHttpMethod(Charset requestCharset, Request request)
protected void dealHeaders(org.apache.http.client.methods.HttpRequestBase method, List<Header> headers)
protected void dealCookies(org.apache.http.client.methods.HttpRequestBase method, List<Cookie> cookies)
protected void dealBodyElement(org.apache.http.client.methods.HttpRequestBase method, Charset requestCharset, List<BodyElement> bodyElements)
Copyright © 2006–2018 TinyGroup. All rights reserved.