public abstract class AbstractHttpClient extends Object implements HttpClient
Description:
| 构造器和说明 |
|---|
AbstractHttpClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
delete(String url) |
void |
delete(String url,
URLParameter... parameters) |
protected HttpResponse |
execute(HttpMethod method,
String url) |
protected HttpResponse |
execute(HttpMethod method,
String url,
URLParameter... parameters) |
HttpResponse |
get(String url) |
HttpResponse |
get(String url,
URLParameter... parameters) |
protected void |
handleResponse(HttpResponse response) |
protected boolean |
hasError(HttpStatus status) |
HttpHeaders |
head(String url) |
HttpHeaders |
head(String url,
URLParameter... parameters) |
Set<HttpMethod> |
options(String url) |
Set<HttpMethod> |
options(String url,
URLParameter... parameters) |
HttpResponse |
post(String url) |
HttpResponse |
post(String url,
HttpEntity entity) |
HttpResponse |
post(String url,
URLParameter... parameters) |
void |
put(String url) |
void |
put(String url,
URLParameter... parameters) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic HttpResponse get(String url) throws HttpClientException
get 在接口中 HttpClientHttpClientExceptionpublic HttpResponse get(String url, URLParameter... parameters) throws HttpClientException
get 在接口中 HttpClientHttpClientExceptionpublic HttpHeaders head(String url) throws HttpClientException
head 在接口中 HttpClientHttpClientExceptionpublic HttpHeaders head(String url, URLParameter... parameters) throws HttpClientException
head 在接口中 HttpClientHttpClientExceptionpublic HttpResponse post(String url) throws HttpClientException
post 在接口中 HttpClientHttpClientExceptionpublic HttpResponse post(String url, URLParameter... parameters) throws HttpClientException
post 在接口中 HttpClientHttpClientExceptionpublic HttpResponse post(String url, HttpEntity entity) throws HttpClientException
post 在接口中 HttpClientHttpClientExceptionpublic void put(String url) throws HttpClientException
put 在接口中 HttpClientHttpClientExceptionpublic void put(String url, URLParameter... parameters) throws HttpClientException
put 在接口中 HttpClientHttpClientExceptionpublic void delete(String url) throws HttpClientException
delete 在接口中 HttpClientHttpClientExceptionpublic void delete(String url, URLParameter... parameters) throws HttpClientException
delete 在接口中 HttpClientHttpClientExceptionpublic Set<HttpMethod> options(String url) throws HttpClientException
options 在接口中 HttpClientHttpClientExceptionpublic Set<HttpMethod> options(String url, URLParameter... parameters) throws HttpClientException
options 在接口中 HttpClientHttpClientExceptionprotected HttpResponse execute(HttpMethod method, String url) throws HttpClientException
protected HttpResponse execute(HttpMethod method, String url, URLParameter... parameters) throws HttpClientException
protected boolean hasError(HttpStatus status)
protected void handleResponse(HttpResponse response) throws HttpClientException
Copyright © 2019. All rights reserved.