Public 成员函数 | |
| CacheHeader (String key, Entry entry) | |
| Entry | toCacheEntry (byte[] data) |
| boolean | writeHeader (OutputStream os) |
静态 Public 成员函数 | |
| static CacheHeader | readHeader (InputStream is) throws IOException |
Public 属性 | |
| long | size |
| String | key |
| String | etag |
| long | serverDate |
| long | ttl |
| long | softTtl |
| Map< String, String > | responseHeaders |
Private 成员函数 | |
| CacheHeader () | |
Handles holding onto the cache headers for an entry.
|
inlineprivate |
|
inline |
Instantiates a new CacheHeader object
| key | The key that identifies the cache entry |
| entry | The cache entry. |
|
inlinestatic |
Reads the header off of an InputStream and returns a CacheHeader object.
| is | The InputStream to read from. |
| IOException |
|
inline |
Creates a cache entry for the specified data.
|
inline |
Writes the contents of this CacheHeader to the specified OutputStream.
| String com.ab.network.toolbox.DiskBasedCache.CacheHeader.etag |
ETag for cache coherence.
| String com.ab.network.toolbox.DiskBasedCache.CacheHeader.key |
The key that identifies the cache entry.
| Map<String, String> com.ab.network.toolbox.DiskBasedCache.CacheHeader.responseHeaders |
Headers from the response resulting in this cache entry.
| long com.ab.network.toolbox.DiskBasedCache.CacheHeader.serverDate |
Date of this response as reported by the server.
| long com.ab.network.toolbox.DiskBasedCache.CacheHeader.size |
The size of the data identified by this CacheHeader. (This is not serialized to disk.
| long com.ab.network.toolbox.DiskBasedCache.CacheHeader.softTtl |
Soft TTL for this record.
| long com.ab.network.toolbox.DiskBasedCache.CacheHeader.ttl |
TTL for this record.
1.8.8