AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | 静态 Public 成员函数 | Public 属性 | Private 成员函数 | 所有成员列表
com.ab.network.toolbox.DiskBasedCache.CacheHeader类 参考

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.

构造及析构函数说明

com.ab.network.toolbox.DiskBasedCache.CacheHeader.CacheHeader ( )
inlineprivate
com.ab.network.toolbox.DiskBasedCache.CacheHeader.CacheHeader ( String  key,
Entry  entry 
)
inline

Instantiates a new CacheHeader object

参数
keyThe key that identifies the cache entry
entryThe cache entry.

成员函数说明

static CacheHeader com.ab.network.toolbox.DiskBasedCache.CacheHeader.readHeader ( InputStream  is) throws IOException
inlinestatic

Reads the header off of an InputStream and returns a CacheHeader object.

参数
isThe InputStream to read from.
异常
IOException
Entry com.ab.network.toolbox.DiskBasedCache.CacheHeader.toCacheEntry ( byte[]  data)
inline

Creates a cache entry for the specified data.

boolean com.ab.network.toolbox.DiskBasedCache.CacheHeader.writeHeader ( OutputStream  os)
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.


该类的文档由以下文件生成: