com.foxinmy.weixin4j.http
Class AbstractHttpClient
java.lang.Object
com.foxinmy.weixin4j.http.AbstractHttpClient
- All Implemented Interfaces:
- HttpClient
- Direct Known Subclasses:
- HttpComponent3, HttpComponent4, Netty4HttpClient, OkHttpClient2, OkHttpClient3, SimpleHttpClient
public abstract class AbstractHttpClient
- extends Object
- implements HttpClient
AbstractHttpClient
public AbstractHttpClient()
get
public HttpResponse get(String url)
throws HttpClientException
- Specified by:
get in interface HttpClient
- Throws:
HttpClientException
get
public HttpResponse get(String url,
URLParameter... parameters)
throws HttpClientException
- Specified by:
get in interface HttpClient
- Throws:
HttpClientException
head
public HttpHeaders head(String url)
throws HttpClientException
- Specified by:
head in interface HttpClient
- Throws:
HttpClientException
head
public HttpHeaders head(String url,
URLParameter... parameters)
throws HttpClientException
- Specified by:
head in interface HttpClient
- Throws:
HttpClientException
post
public HttpResponse post(String url)
throws HttpClientException
- Specified by:
post in interface HttpClient
- Throws:
HttpClientException
post
public HttpResponse post(String url,
URLParameter... parameters)
throws HttpClientException
- Specified by:
post in interface HttpClient
- Throws:
HttpClientException
post
public HttpResponse post(String url,
HttpEntity entity)
throws HttpClientException
- Specified by:
post in interface HttpClient
- Throws:
HttpClientException
put
public void put(String url)
throws HttpClientException
- Specified by:
put in interface HttpClient
- Throws:
HttpClientException
put
public void put(String url,
URLParameter... parameters)
throws HttpClientException
- Specified by:
put in interface HttpClient
- Throws:
HttpClientException
delete
public void delete(String url)
throws HttpClientException
- Specified by:
delete in interface HttpClient
- Throws:
HttpClientException
delete
public void delete(String url,
URLParameter... parameters)
throws HttpClientException
- Specified by:
delete in interface HttpClient
- Throws:
HttpClientException
options
public Set<HttpMethod> options(String url)
throws HttpClientException
- Specified by:
options in interface HttpClient
- Throws:
HttpClientException
options
public Set<HttpMethod> options(String url,
URLParameter... parameters)
throws HttpClientException
- Specified by:
options in interface HttpClient
- Throws:
HttpClientException
Copyright © 2014–2017. All rights reserved.