Package com.foxinmy.weixin4j.http
Interface HttpClient
-
- All Known Implementing Classes:
AbstractHttpClient,HttpComponent3,HttpComponent4,HttpComponent4_1,HttpComponent4_2,Netty4HttpClient,OkHttpClient2,OkHttpClient3,SimpleHttpClient
public interface HttpClientHTTP 接口- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(String url)voiddelete(String url, URLParameter... parameters)HttpResponseexecute(HttpRequest request)处理请求HttpResponseget(String url)HttpResponseget(String url, URLParameter... parameters)HttpHeadershead(String url)HttpHeadershead(String url, URLParameter... parameters)Set<HttpMethod>options(String url)Set<HttpMethod>options(String url, URLParameter... parameters)HttpResponsepost(String url)HttpResponsepost(String url, HttpEntity httpEntity)HttpResponsepost(String url, URLParameter... parameters)voidput(String url)voidput(String url, URLParameter... parameters)
-
-
-
Method Detail
-
get
HttpResponse get(String url) throws HttpClientException
- Throws:
HttpClientException
-
get
HttpResponse get(String url, URLParameter... parameters) throws HttpClientException
- Throws:
HttpClientException
-
head
HttpHeaders head(String url) throws HttpClientException
- Throws:
HttpClientException
-
head
HttpHeaders head(String url, URLParameter... parameters) throws HttpClientException
- Throws:
HttpClientException
-
post
HttpResponse post(String url) throws HttpClientException
- Throws:
HttpClientException
-
post
HttpResponse post(String url, URLParameter... parameters) throws HttpClientException
- Throws:
HttpClientException
-
post
HttpResponse post(String url, HttpEntity httpEntity) throws HttpClientException
- Throws:
HttpClientException
-
put
void put(String url) throws HttpClientException
- Throws:
HttpClientException
-
put
void put(String url, URLParameter... parameters) throws HttpClientException
- Throws:
HttpClientException
-
delete
void delete(String url) throws HttpClientException
- Throws:
HttpClientException
-
delete
void delete(String url, URLParameter... parameters) throws HttpClientException
- Throws:
HttpClientException
-
options
Set<HttpMethod> options(String url) throws HttpClientException
- Throws:
HttpClientException
-
options
Set<HttpMethod> options(String url, URLParameter... parameters) throws HttpClientException
- Throws:
HttpClientException
-
execute
HttpResponse execute(HttpRequest request) throws HttpClientException
处理请求- Parameters:
request- 请求对象- Returns:
- 响应对象
- Throws:
HttpClientException
-
-