public class OnDiskCachedUrl extends Url
call, client, headersRequest, headersResponse, KNOWN_HEADERS, request, response, responseCharset, responseCode, responseContentLength, responseContentType, responseMessage, uri, url, USER_AGENT
Constructor and Description |
---|
OnDiskCachedUrl(String url)
create an instance of the
Url using the default caching values (which respect the response headers of the HTTP request) |
OnDiskCachedUrl(String url,
int timeToLive,
TimeUnit timeUnit)
create an instance of the
Url using the given caching values (overwriting any available response headers of the HTTP request) |
addHeader, addHeader, addHeaders, cleanup, download, download, getBytes, getBytesWithRetry, getCharset, getContentEncoding, getContentLength, getHeader, getHeadersResponse, getInputStream, getInputStream, getInputstreamInternal, getInputStreamWithRetry, getStatusCode, getStatusLine, getUrl, isFault, morphStringToUri, setUserAgent, splitHeadersFromUrl, toString
public OnDiskCachedUrl(String url) throws MalformedURLException
Url
using the default caching values (which respect the response headers of the HTTP request)url
- the url to fetchMalformedURLException
public OnDiskCachedUrl(String url, int timeToLive, TimeUnit timeUnit) throws MalformedURLException
Url
using the given caching values (overwriting any available response headers of the HTTP request)url
- the url to fetchMalformedURLException
Copyright © 2012–2019 tinyMediaManager. All rights reserved.