public interface HttpClient
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponse |
delete(String url)
Http 'DELETE' request.
|
HttpResponse |
delete(String url,
Map<String,String> params)
Http 'DELETE' request.
|
HttpResponse |
delete(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'DELETE' request.
|
HttpResponse |
execute(RequestMethod requestMethod,
String url) |
HttpResponse |
execute(RequestMethod requestMethod,
String url,
Map<String,String> params) |
HttpResponse |
execute(RequestMethod requestMethod,
String url,
Map<String,String> headers,
Map<String,String> params) |
HttpResponse |
execute(RequestMethod requestMethod,
String url,
Map<String,String> headers,
String json) |
HttpResponse |
execute(RequestMethod requestMethod,
String url,
Map<String,String> headers,
String stream,
org.apache.http.entity.ContentType contentType) |
HttpResponse |
execute(RequestMethod requestMethod,
String url,
String json) |
HttpResponse |
execute(RequestMethod requestMethod,
String url,
String stream,
org.apache.http.entity.ContentType contentType) |
HttpResponse |
get(String url)
Http 'GET' request.
|
HttpResponse |
get(String url,
Map<String,String> params)
Http 'GET' request.
|
HttpResponse |
get(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'GET' request.
|
HttpResponse |
head(String url)
Http 'HEAD' request.
|
HttpResponse |
head(String url,
Map<String,String> params)
Http 'HEAD' request.
|
HttpResponse |
head(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'HEAD' request.
|
HttpResponse |
options(String url)
Http 'OPTIONS' request.
|
HttpResponse |
options(String url,
Map<String,String> params)
Http 'OPTIONS' request.
|
HttpResponse |
options(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'OPTIONS' request.
|
HttpResponse |
patch(String url)
Http 'PATCH' request.
|
HttpResponse |
patch(String url,
Map<String,String> params)
Http 'PATCH' request.
|
HttpResponse |
patch(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'PATCH' request.
|
HttpResponse |
patch(String url,
Map<String,String> headers,
String json)
Http 'PATCH' request.
|
HttpResponse |
patch(String url,
Map<String,String> headers,
String stream,
org.apache.http.entity.ContentType contentType)
Http 'PATCH' request.
|
HttpResponse |
patch(String url,
String json)
Http 'PATCH' request.
|
HttpResponse |
patch(String url,
String stream,
org.apache.http.entity.ContentType contentType)
Http 'PATCH' request.
|
HttpResponse |
post(String url)
Http 'POST' request.
|
HttpResponse |
post(String url,
Map<String,String> params)
Http 'POST' request.
|
HttpResponse |
post(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'POST' request.
|
HttpResponse |
post(String url,
Map<String,String> headers,
String json)
Http 'POST' request.
|
HttpResponse |
post(String url,
Map<String,String> headers,
String stream,
org.apache.http.entity.ContentType contentType)
Http 'POST' request.
|
HttpResponse |
post(String url,
String json)
Http 'POST' request.
|
HttpResponse |
post(String url,
String stream,
org.apache.http.entity.ContentType contentType)
Http 'POST' request.
|
HttpResponse |
put(String url)
Http 'PUT' request.
|
HttpResponse |
put(String url,
Map<String,String> params)
Http 'PUT' request.
|
HttpResponse |
put(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'PUT' request.
|
HttpResponse |
put(String url,
Map<String,String> headers,
String json)
Http 'PUT' request.
|
HttpResponse |
put(String url,
Map<String,String> headers,
String stream,
org.apache.http.entity.ContentType contentType)
Http 'PUT' request.
|
HttpResponse |
put(String url,
String json)
Http 'PUT' request.
|
HttpResponse |
put(String url,
String stream,
org.apache.http.entity.ContentType contentType)
Http 'PUT' request.
|
HttpResponse |
trace(String url)
Http 'TRACE' request.
|
HttpResponse |
trace(String url,
Map<String,String> params)
Http 'TRACE' request.
|
HttpResponse |
trace(String url,
Map<String,String> headers,
Map<String,String> params)
Http 'TRACE' request.
|
HttpResponse get(String url) throws IOException
url - request urlIOException - if I/O errors occurHttpResponse get(String url, Map<String,String> params) throws URISyntaxException, IOException
url - request urlparams - request parameter mapURISyntaxException - if URI Syntax errors occurIOException - if I/O errors occurHttpResponse get(String url, Map<String,String> headers, Map<String,String> params) throws URISyntaxException, IOException
url - request urlheaders - request headers mapparams - request parameter mapURISyntaxException - if URI Syntax errors occurIOException - if I/O errors occurHttpResponse post(String url) throws IOException
url - request urlIOException - if I/O errors occurHttpResponse post(String url, Map<String,String> params) throws IOException
url - request urlparams - request parameter mapIOException - if I/O errors occurHttpResponse post(String url, String json) throws IOException
url - request urljson - request json stringIOException - if I/O errors occurHttpResponse post(String url, String stream, org.apache.http.entity.ContentType contentType) throws IOException
url - request urlstream - stream stringcontentType - httpclient ContentTypeIOException - if I/O errors occurHttpResponse post(String url, Map<String,String> headers, String json) throws IOException
url - request urlheaders - request headers mapjson - json stringIOException - if I/O errors occurHttpResponse post(String url, Map<String,String> headers, String stream, org.apache.http.entity.ContentType contentType) throws IOException
url - request urlheaders - request hreaders mapstream - stream stringcontentType - httpclient ContentTypeIOException - if I/O errors occurHttpResponse post(String url, Map<String,String> headers, Map<String,String> params) throws IOException
url - request urlheaders - request hreaders mapparams - request parameter mapIOException - if I/O errors occurHttpResponse put(String url) throws IOException
url - request urlIOException - if I/O errors occurHttpResponse put(String url, Map<String,String> params) throws IOException
url - request urlparams - request parameter mapIOException - if I/O errors occurHttpResponse put(String url, String json) throws IOException
url - request urljson - request json stringIOException - if I/O errors occurHttpResponse put(String url, String stream, org.apache.http.entity.ContentType contentType) throws IOException
url - the urlstream - the streamcontentType - the contentTypeIOExceptionHttpResponse put(String url, Map<String,String> headers, String stream, org.apache.http.entity.ContentType contentType) throws IOException
url - the urlstream - the streamcontentType - the contentTypeIOExceptionHttpResponse put(String url, Map<String,String> headers, String json) throws IOException
url - request urlheaders - request headers mapjson - json stringIOException - if I/O errors occurHttpResponse put(String url, Map<String,String> headers, Map<String,String> params) throws IOException
url - request urlheaders - request hreaders mapparams - request parameter mapIOException - if I/O errors occurHttpResponse delete(String url) throws IOException
url - request urlIOException - if I/O errors occurHttpResponse delete(String url, Map<String,String> params) throws IOException
url - request urlparams - request params mapIOException - if I/O errors occurHttpResponse delete(String url, Map<String,String> headers, Map<String,String> params) throws IOException
url - request urlheaders - request headers mapparams - the paramsIOException - if I/O errors occurHttpResponse patch(String url) throws IOException
url - request urlIOException - IOException if I/O errors occurHttpResponse patch(String url, Map<String,String> params) throws IOException
url - request urlparams - request parameter mapIOException - if I/O errors occurHttpResponse patch(String url, String json) throws IOException
url - request urljson - request json stringIOException - if I/O errors occurHttpResponse patch(String url, String stream, org.apache.http.entity.ContentType contentType) throws IOException
url - request urlstream - stream stringcontentType - httpclient ContentTypeIOException - if I/O errors occurHttpResponse patch(String url, Map<String,String> headers, String json) throws IOException
url - request urlheaders - request headers mapjson - json stringIOException - if I/O errors occurHttpResponse patch(String url, Map<String,String> headers, String stream, org.apache.http.entity.ContentType contentType) throws IOException
url - request urlheaders - request hreaders mapstream - stream stringcontentType - httpclient ContentTypeIOException - if I/O errors occurHttpResponse patch(String url, Map<String,String> headers, Map<String,String> params) throws IOException
url - request urlheaders - request hreaders mapparams - request parameter mapIOException - if I/O errors occurHttpResponse head(String url) throws IOException
url - request urlIOException - if I/O errors occurHttpResponse head(String url, Map<String,String> params) throws IOException
url - request urlparams - request params mapIOException - if I/O errors occurHttpResponse head(String url, Map<String,String> headers, Map<String,String> params) throws IOException
url - request urlheaders - request headers mapparams - the paramsIOException - if I/O errors occurHttpResponse options(String url) throws IOException
url - request urlIOException - if I/O errors occurHttpResponse options(String url, Map<String,String> params) throws IOException
url - request urlparams - request params mapIOException - if I/O errors occurHttpResponse options(String url, Map<String,String> headers, Map<String,String> params) throws IOException
url - request urlheaders - request headers mapparams - the paramsIOException - if I/O errors occurHttpResponse trace(String url) throws IOException
url - request urlIOException - if I/O errors occurHttpResponse trace(String url, Map<String,String> params) throws IOException
url - request urlparams - request params mapIOException - if I/O errors occurHttpResponse trace(String url, Map<String,String> headers, Map<String,String> params) throws IOException
url - request urlheaders - request headers mapparams - the paramsIOException - if I/O errors occurHttpResponse execute(RequestMethod requestMethod, String url) throws IOException
IOExceptionHttpResponse execute(RequestMethod requestMethod, String url, Map<String,String> params) throws IOException
IOExceptionHttpResponse execute(RequestMethod requestMethod, String url, String json) throws IOException
IOExceptionHttpResponse execute(RequestMethod requestMethod, String url, Map<String,String> headers, Map<String,String> params) throws IOException
IOExceptionHttpResponse execute(RequestMethod requestMethod, String url, Map<String,String> headers, String json) throws IOException
IOExceptionHttpResponse execute(RequestMethod requestMethod, String url, String stream, org.apache.http.entity.ContentType contentType) throws IOException
IOExceptionHttpResponse execute(RequestMethod requestMethod, String url, Map<String,String> headers, String stream, org.apache.http.entity.ContentType contentType) throws IOException
IOExceptionCopyright © 2015–2016. All rights reserved.