Class HttpComponent4
- java.lang.Object
-
- com.foxinmy.weixin4j.http.AbstractHttpClient
-
- com.foxinmy.weixin4j.http.support.apache4.HttpComponent4
-
- All Implemented Interfaces:
HttpClient
- Direct Known Subclasses:
HttpComponent4_1
,HttpComponent4_2
public abstract class HttpComponent4 extends AbstractHttpClient
Apache HttpComponents 4.x- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
HttpComponent4.CustomHostnameVerifier
-
Constructor Summary
Constructors Constructor Description HttpComponent4()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.http.client.methods.HttpRequestBase
createMethod(HttpRequest request)
Create HttpMethodprotected org.apache.http.client.methods.HttpRequestBase
createRequest(HttpRequest request)
Create HttpRequestprotected byte[]
getContent(org.apache.http.HttpResponse httpResponse)
protected void
resolveContent(HttpEntity entity, org.apache.http.client.methods.HttpRequestBase httpRequest)
Resolve Contentprotected void
resolveHeaders(HttpHeaders headers, org.apache.http.client.methods.HttpRequestBase httpRequest)
Resolve Headers-
Methods inherited from class com.foxinmy.weixin4j.http.AbstractHttpClient
delete, delete, execute, execute, get, get, handleResponse, hasError, head, head, options, options, post, post, post, put, put
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.foxinmy.weixin4j.http.HttpClient
execute
-
-
-
-
Method Detail
-
createRequest
protected org.apache.http.client.methods.HttpRequestBase createRequest(HttpRequest request) throws HttpClientException, IOException
Create HttpRequest- Throws:
HttpClientException
IOException
-
createMethod
protected org.apache.http.client.methods.HttpRequestBase createMethod(HttpRequest request) throws HttpClientException
Create HttpMethod- Throws:
HttpClientException
-
resolveHeaders
protected void resolveHeaders(HttpHeaders headers, org.apache.http.client.methods.HttpRequestBase httpRequest)
Resolve Headers
-
resolveContent
protected void resolveContent(HttpEntity entity, org.apache.http.client.methods.HttpRequestBase httpRequest) throws IOException
Resolve Content- Throws:
IOException
-
getContent
protected byte[] getContent(org.apache.http.HttpResponse httpResponse) throws IOException
- Throws:
IOException
-
-