public abstract class AbstractHttpClient31 extends AbstractClientInterface implements ClientInterface
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowRedirects |
protected org.apache.commons.httpclient.HttpClient |
httpClient |
protected String |
userAgent |
DEFAULT_REQUEST_CHARSET, httpConfigTemplate, httpTemplateManagerDEFAULT_BEAN_NAME| Constructor and Description |
|---|
AbstractHttpClient31() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.commons.httpclient.HttpClient |
buildHttpClient()
由不同的实现决定
|
protected void |
dealBodyElement(org.apache.commons.httpclient.HttpMethodBase method,
Charset requestCharset,
List<BodyElement> bodyElements) |
protected void |
dealCookies(org.apache.commons.httpclient.HttpMethodBase method,
org.apache.commons.httpclient.HttpState state,
List<Cookie> cookies) |
protected void |
dealHeaders(org.apache.commons.httpclient.HttpMethodBase method,
List<Header> headers) |
protected org.apache.commons.httpclient.HttpMethodBase |
dealHttpMethod(Request request) |
void |
init(Context context)
初始化客户端
|
protected void |
initCertifiable(Certifiable cert,
org.apache.commons.httpclient.HttpClient client) |
protected org.apache.commons.httpclient.HttpClient |
initHttpClient(Context context) |
protected void |
initKeyCert(KeyCert cert) |
protected void |
initParams(Context context,
org.apache.commons.httpclient.HttpClient client) |
protected void |
initPasswordCert(PasswordCert cert,
org.apache.commons.httpclient.HttpClient client) |
protected void |
initProxy(Proxy proxy,
org.apache.commons.httpclient.HttpClient client) |
getCharset, getHttpTemplateManager, getInterceptorList, getUrl, setHttpTemplateManager, updateHttpConfigTemplateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowMultiton, execute, getHttpTemplateManager, getInterceptorListprotected org.apache.commons.httpclient.HttpClient httpClient
protected boolean allowRedirects
protected String userAgent
public void init(Context context)
ClientInterfaceinit in interface ClientInterfaceprotected org.apache.commons.httpclient.HttpClient initHttpClient(Context context)
protected abstract org.apache.commons.httpclient.HttpClient buildHttpClient()
protected void initParams(Context context, org.apache.commons.httpclient.HttpClient client)
protected void initProxy(Proxy proxy, org.apache.commons.httpclient.HttpClient client)
protected void initCertifiable(Certifiable cert, org.apache.commons.httpclient.HttpClient client)
protected void initKeyCert(KeyCert cert)
protected void initPasswordCert(PasswordCert cert, org.apache.commons.httpclient.HttpClient client)
protected org.apache.commons.httpclient.HttpMethodBase dealHttpMethod(Request request)
protected void dealHeaders(org.apache.commons.httpclient.HttpMethodBase method,
List<Header> headers)
protected void dealCookies(org.apache.commons.httpclient.HttpMethodBase method,
org.apache.commons.httpclient.HttpState state,
List<Cookie> cookies)
protected void dealBodyElement(org.apache.commons.httpclient.HttpMethodBase method,
Charset requestCharset,
List<BodyElement> bodyElements)
Copyright © 2006–2018 TinyGroup. All rights reserved.