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, setDefaultRequestOptions
public HttpCache()
public HttpCache(SSLContext sslContext)
public HttpCache(SSLContext sslContext, org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
HttpRequestOptions
public HttpResponse get(String url, HttpRequestOptions requestOptions) throws IOException
HttpFetcher
get
in interface HttpFetcher
get
in class AbstractHttpFetcher
url
- The HTTP URL to GET.IOException
HttpRequestOptions, HttpResponse
public HttpResponse post(String url, Map<String,String> parameters, HttpRequestOptions requestOptions) throws IOException
post
in interface HttpFetcher
post
in class AbstractHttpFetcher
IOException
public HttpResponse head(String url, HttpRequestOptions requestOptions) throws IOException
head
in interface HttpFetcher
head
in class AbstractHttpFetcher
IOException
Copyright © 2014 Sxip. All rights reserved.