FileDocCategorySizeDatePackage
CacheResponse.javaAPI DocJava SE 5 API1394Fri Aug 26 14:57:08 BST 2005java.net

CacheResponse

public abstract class CacheResponse extends Object
Represent channels for retrieving resources from the ResponseCache. Instances of such a class provide an InputStream that returns the entity body, and also a getHeaders() method which returns the associated response headers.
version
1.1, 03/09/22
author
Yingxian Wang
since
1.5

Fields Summary
Constructors Summary
Methods Summary
public abstract java.io.InputStreamgetBody()
Returns the response body as an InputStream.

return
an InputStream from which the response body can be accessed
throws
IOException if an I/O error occurs while getting the response body

public abstract java.util.MapgetHeaders()
Returns the response headers as a Map.

return
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