|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.volley.toolbox.DiskBasedCache.CacheHeader
static class DiskBasedCache.CacheHeader
Handles holding onto the cache headers for an entry.
Field Summary | |
---|---|
String |
etag
ETag for cache coherence. |
String |
key
The key that identifies the cache entry. |
Map<String,String> |
responseHeaders
Headers from the response resulting in this cache entry. |
long |
serverDate
Date of this response as reported by the server. |
long |
size
The size of the data identified by this CacheHeader. |
long |
softTtl
Soft TTL for this record. |
long |
ttl
TTL for this record. |
Constructor Summary | |
---|---|
DiskBasedCache.CacheHeader(String key,
Cache.Entry entry)
Instantiates a new CacheHeader object |
Method Summary | |
---|---|
static DiskBasedCache.CacheHeader |
readHeader(InputStream is)
Reads the header off of an InputStream and returns a CacheHeader object. |
Cache.Entry |
toCacheEntry(byte[] data)
Creates a cache entry for the specified data. |
boolean |
writeHeader(OutputStream os)
Writes the contents of this CacheHeader to the specified OutputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long size
public String key
public String etag
public long serverDate
public long ttl
public long softTtl
public Map<String,String> responseHeaders
Constructor Detail |
---|
public DiskBasedCache.CacheHeader(String key, Cache.Entry entry)
key
- The key that identifies the cache entryentry
- The cache entry.Method Detail |
---|
public static DiskBasedCache.CacheHeader readHeader(InputStream is) throws IOException
is
- The InputStream to read from.
IOException
public Cache.Entry toCacheEntry(byte[] data)
public boolean writeHeader(OutputStream os)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |