public class HttpCache extends AbstractHttpFetcher
| Constructor and Description |
|---|
HttpCache() |
HttpCache(SSLContext sslContext) |
HttpCache(SSLContext sslContext,
org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
Constructs a new HttpCache object, that will be initialized with the
default set of HttpRequestOptions.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
get(String url,
HttpRequestOptions requestOptions)
GETs a HTTP URL.
|
HttpResponse |
head(String url,
HttpRequestOptions requestOptions) |
HttpResponse |
post(String url,
Map<String,String> parameters,
HttpRequestOptions requestOptions) |
get, getDefaultRequestOptions, getRequestOptions, head, post, setDefaultRequestOptionspublic HttpCache()
public HttpCache(SSLContext sslContext)
public HttpCache(SSLContext sslContext, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
HttpRequestOptionspublic HttpResponse get(String url, HttpRequestOptions requestOptions) throws IOException
HttpFetcherget in interface HttpFetcherget in class AbstractHttpFetcherurl - The HTTP URL to GET.IOExceptionHttpRequestOptions, HttpResponsepublic HttpResponse post(String url, Map<String,String> parameters, HttpRequestOptions requestOptions) throws IOException
post in interface HttpFetcherpost in class AbstractHttpFetcherIOExceptionpublic HttpResponse head(String url, HttpRequestOptions requestOptions) throws IOException
head in interface HttpFetcherhead in class AbstractHttpFetcherIOExceptionCopyright © 2013 Sxip. All Rights Reserved.