public abstract class AbstractHttpFetcher extends Object implements HttpFetcher
| Constructor and Description |
|---|
AbstractHttpFetcher() |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
get(String url)
GETs a HTTP URL.
|
abstract 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) |
abstract HttpResponse |
head(String url,
HttpRequestOptions requestOptions) |
HttpResponse |
post(String url,
Map<String,String> parameters) |
abstract HttpResponse |
post(String url,
Map<String,String> parameters,
HttpRequestOptions requestOptions) |
void |
setDefaultRequestOptions(HttpRequestOptions defaultOptions) |
public HttpResponse get(String url) throws IOException
HttpFetcherget in interface HttpFetcherurl - The HTTP URL to GET.IOExceptionHttpResponsepublic abstract HttpResponse get(String url, HttpRequestOptions requestOptions) throws IOException
HttpFetcherget in interface HttpFetcherurl - The HTTP URL to GET.IOExceptionHttpRequestOptions, HttpResponsepublic HttpRequestOptions getDefaultRequestOptions()
HttpFetcherHttpRequestOptions. Note that this does
not return a clone, so manipulating the object returned here will
manipulate the HttpRequestOptions used by the HttpFetcher.getDefaultRequestOptions in interface HttpFetcherpublic HttpRequestOptions getRequestOptions()
HttpFetchergetRequestOptions in interface HttpFetcherpublic HttpResponse head(String url) throws IOException
head in interface HttpFetcherIOExceptionpublic abstract HttpResponse post(String url, Map<String,String> parameters, HttpRequestOptions requestOptions) throws IOException
post in interface HttpFetcherIOExceptionpublic HttpResponse post(String url, Map<String,String> parameters) throws IOException
post in interface HttpFetcherIOExceptionpublic abstract HttpResponse head(String url, HttpRequestOptions requestOptions) throws IOException
head in interface HttpFetcherIOExceptionpublic void setDefaultRequestOptions(HttpRequestOptions defaultOptions)
setDefaultRequestOptions in interface HttpFetcherCopyright © 2013 Sxip. All Rights Reserved.