public abstract class java.net
CacheResponse


Hide details Login
Java SE 6
  
Extended by: SecureCacheResponse

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.
version1.1, 03/09/22
since1.5

Constructors
public CacheResponse()

Properties
abstract public InputStream getBody() throws IOException
Returns the response body as an InputStream.
returnan InputStream from which the response body can be accessed
ThrowsIOException: if an I/O error occurs while getting the response body
abstract public Map getHeaders() throws IOException
Returns the response headers as a Map.
returnAn immutable Map from response header field names to lists of field values. The status line has null as its field name.
ThrowsIOException: if an I/O error occurs while getting the response headers