Package com.foxinmy.weixin4j.http
Class SimpleHttpClient
- java.lang.Object
-
- com.foxinmy.weixin4j.http.AbstractHttpClient
-
- com.foxinmy.weixin4j.http.SimpleHttpClient
-
- All Implemented Interfaces:
HttpClient
public class SimpleHttpClient extends AbstractHttpClient
HTTP 简单实现- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SimpleHttpClient(HttpParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpURLConnection
createHttpConnection(HttpRequest request)
HttpResponse
execute(HttpRequest request)
处理请求
-
-
-
Constructor Detail
-
SimpleHttpClient
public SimpleHttpClient(HttpParams params)
-
-
Method Detail
-
createHttpConnection
protected HttpURLConnection createHttpConnection(HttpRequest request) throws IOException
- Throws:
IOException
-
execute
public HttpResponse execute(HttpRequest request) throws HttpClientException
Description copied from interface:HttpClient
处理请求- Parameters:
request
- 请求对象- Returns:
- 响应对象
- Throws:
HttpClientException
-
-