Class HttpComponent3
- java.lang.Object
-
- com.foxinmy.weixin4j.http.AbstractHttpClient
-
- com.foxinmy.weixin4j.http.support.apache3.HttpComponent3
-
- All Implemented Interfaces:
HttpClient
public class HttpComponent3 extends AbstractHttpClient
Requires commons-httpclient 3.0 or higher- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpComponent3.SSLProtocolSocketFactory
-
Constructor Summary
Constructors Constructor Description HttpComponent3(org.apache.commons.httpclient.HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.httpclient.HttpMethod
createMethod(HttpRequest request)
Create HttpMethodprotected org.apache.commons.httpclient.HttpMethod
createRequest(HttpRequest request)
Create HttpRequestHttpResponse
execute(HttpRequest request)
处理请求protected void
resolveContent(HttpRequest request, org.apache.commons.httpclient.HttpMethod httpMethod)
Resolve Contentprotected void
resolveHeaders(HttpRequest request, org.apache.commons.httpclient.HttpMethod httpMethod)
Resolve Headers
-
-
-
Method Detail
-
execute
public HttpResponse execute(HttpRequest request) throws HttpClientException
Description copied from interface:HttpClient
处理请求- Parameters:
request
- 请求对象- Returns:
- 响应对象
- Throws:
HttpClientException
-
createRequest
protected org.apache.commons.httpclient.HttpMethod createRequest(HttpRequest request) throws HttpClientException, IOException
Create HttpRequest- Throws:
HttpClientException
IOException
-
createMethod
protected org.apache.commons.httpclient.HttpMethod createMethod(HttpRequest request) throws HttpClientException
Create HttpMethod- Throws:
HttpClientException
-
resolveHeaders
protected void resolveHeaders(HttpRequest request, org.apache.commons.httpclient.HttpMethod httpMethod)
Resolve Headers
-
resolveContent
protected void resolveContent(HttpRequest request, org.apache.commons.httpclient.HttpMethod httpMethod) throws IOException
Resolve Content- Throws:
IOException
-
-