public interface HttpFetcher
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
get(String url)
GETs a HTTP URL.
|
HttpResponse |
get(String url,
HttpRequestOptions requestOptions)
GETs a HTTP URL.
|
HttpRequestOptions |
getDefaultRequestOptions()
Returns the default
HttpRequestOptions. |
HttpRequestOptions |
getRequestOptions()
Gets a clone of the default HttpRequestOptions.
|
HttpResponse |
head(String url) |
HttpResponse |
head(String url,
HttpRequestOptions requestOptions) |
HttpResponse |
post(String url,
Map<String,String> parameters) |
HttpResponse |
post(String url,
Map<String,String> parameters,
HttpRequestOptions requestOptions) |
void |
setDefaultRequestOptions(HttpRequestOptions defaultOptions) |
HttpRequestOptions getDefaultRequestOptions()
HttpRequestOptions. Note that this does
not return a clone, so manipulating the object returned here will
manipulate the HttpRequestOptions used by the HttpFetcher.HttpRequestOptions getRequestOptions()
void setDefaultRequestOptions(HttpRequestOptions defaultOptions)
HttpResponse get(String url) throws IOException
url - The HTTP URL to GET.IOExceptionHttpResponseHttpResponse get(String url, HttpRequestOptions requestOptions) throws IOException
url - The HTTP URL to GET.IOExceptionHttpRequestOptions, HttpResponseHttpResponse head(String url) throws IOException
IOExceptionHttpResponse head(String url, HttpRequestOptions requestOptions) throws IOException
IOExceptionHttpResponse post(String url, Map<String,String> parameters) throws IOException
IOExceptionHttpResponse post(String url, Map<String,String> parameters, HttpRequestOptions requestOptions) throws IOException
IOExceptionCopyright © 2013 Sxip. All Rights Reserved.