| 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 | ( |  | ) |
| inline private

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

Instantiates a new CacheHeader object

参数

  key | The key that identifies the cache entry
  entry | The cache entry.

## 成员函数说明

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

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

参数

  is | The 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.

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

- src/com/ab/network/toolbox/DiskBasedCache.java