CacheResponse
public abstract class CacheResponse
extends Object
Known Direct Subclasses
|
表示从ResponseCache中检索资源的通道。 这样的类的实例提供一个返回实体主体的InputStream,以及一个返回相关响应头的getHeaders()方法。
Summary
Public constructors
CacheResponse
CacheResponse ()
Public methods
getBody
InputStream getBody ()
以InputStream形式返回响应主体。
Returns |
InputStream |
an InputStream from which the response body can be accessed |
Throws |
IOException |
if an I/O error occurs while getting the response body |
getHeaders
Map<String, List<String>> getHeaders ()
以Map的形式返回响应标题。
Returns |
Map<String, List<String>> |
An immutable Map from response header field names to lists of field values. The status line has null as its field name. |
Throws |
IOException |
if an I/O error occurs while getting the response headers |