public abstract class AbstractHttpFetcher extends java.lang.Object implements HttpFetcher
| Modifier and Type | Field and Description |
|---|---|
private HttpRequestOptions |
_defaultOptions
Default set of HTTP request options to be used when placing HTTP
requests, if a custom one was not specified.
|
| Constructor and Description |
|---|
AbstractHttpFetcher() |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
get(java.lang.String url)
GETs a HTTP URL.
|
abstract HttpResponse |
get(java.lang.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(java.lang.String url) |
abstract HttpResponse |
head(java.lang.String url,
HttpRequestOptions requestOptions) |
HttpResponse |
post(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters) |
abstract HttpResponse |
post(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters,
HttpRequestOptions requestOptions) |
void |
setDefaultRequestOptions(HttpRequestOptions defaultOptions) |
private HttpRequestOptions _defaultOptions
public HttpResponse get(java.lang.String url) throws java.io.IOException
HttpFetcherget in interface HttpFetcherurl - The HTTP URL to GET.java.io.IOExceptionHttpResponsepublic abstract HttpResponse get(java.lang.String url, HttpRequestOptions requestOptions) throws java.io.IOException
HttpFetcherget in interface HttpFetcherurl - The HTTP URL to GET.java.io.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(java.lang.String url) throws java.io.IOException
head in interface HttpFetcherjava.io.IOExceptionpublic abstract HttpResponse post(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters, HttpRequestOptions requestOptions) throws java.io.IOException
post in interface HttpFetcherjava.io.IOExceptionpublic HttpResponse post(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.io.IOException
post in interface HttpFetcherjava.io.IOExceptionpublic abstract HttpResponse head(java.lang.String url, HttpRequestOptions requestOptions) throws java.io.IOException
head in interface HttpFetcherjava.io.IOExceptionpublic void setDefaultRequestOptions(HttpRequestOptions defaultOptions)
setDefaultRequestOptions in interface HttpFetcherCopyright 2006-2008 Sxip Identity Corporation