@Deprecated public static class CacheManager.CacheResult extends Object
CacheManager.getCacheFile(String, Map))
.Constructor and Description |
---|
CacheResult()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentDisposition()
Deprecated.
Gets the value of the HTTP 'Content-Disposition' header with which
this cache entry was received.
|
long |
getContentLength()
Deprecated.
Gets the content length of this cache entry.
|
String |
getEncoding()
Deprecated.
Gets the encoding of this cache entry.
|
String |
getETag()
Deprecated.
Gets the entity tag of this cache entry.
|
long |
getExpires()
Deprecated.
Gets the expiry date of this cache entry, expressed in milliseconds
since midnight, January 1, 1970 UTC.
|
String |
getExpiresString()
Deprecated.
Gets the expiry date of this cache entry, expressed as a string.
|
int |
getHttpStatusCode()
Deprecated.
Gets the status code of this cache entry.
|
InputStream |
getInputStream()
Deprecated.
Gets the input stream to the content of this cache entry, to allow
content to be read.
|
String |
getLastModified()
Deprecated.
Gets the date at which this cache entry was last modified, expressed
as a string.
|
String |
getLocalPath()
Deprecated.
Gets the path of the file used to store the content of this cache
entry, relative to the base directory of the cache.
|
String |
getLocation()
Deprecated.
Gets the value of the HTTP 'Location' header with which this cache
entry was received.
|
String |
getMimeType()
Deprecated.
Gets the MIME type of this cache entry.
|
OutputStream |
getOutputStream()
Deprecated.
Gets an output stream to the content of this cache entry, to allow
content to be written.
|
void |
setContentLength(long contentLength)
Deprecated.
|
void |
setEncoding(String encoding)
Deprecated.
Sets the encoding of this cache entry.
|
void |
setInputStream(InputStream stream)
Deprecated.
Sets an input stream to the content of this cache entry.
|
public int getHttpStatusCode()
public long getContentLength()
public String getLocalPath()
CacheManager.getCacheFileBaseDir()
.public long getExpires()
public String getExpiresString()
public String getLastModified()
public String getETag()
public String getMimeType()
public String getLocation()
public String getEncoding()
public String getContentDisposition()
public InputStream getInputStream()
CacheManager.getCacheFile(String, Map)
.public OutputStream getOutputStream()
CacheManager.saveCacheFile(String, CacheResult)
.public void setInputStream(InputStream stream)
stream
- an input stream to the content of this cache entrypublic void setEncoding(String encoding)
encoding
- the encoding of this cache entrypublic void setContentLength(long contentLength)