| java.lang.Object java.net.CacheResponse
All known Subclasses: java.net.SecureCacheResponse,
CacheResponse | abstract public class CacheResponse (Code) | | CacheResponse is used for getting resource from the ResponseCache. An
CacheResponse object provides an InputStream to access the
response body, and also a method getHeaders() to fetch the
response headers.
|
Method Summary | |
abstract public InputStream | getBody() Returns an InputStream for the respsonse body access. | abstract public Map<String, List<String>> | getHeaders() Returns an immutable Map , which contains the response
headers information.
an immutable Map , which contains the responseheaders. |
CacheResponse | public CacheResponse()(Code) | | Constructor method
|
getBody | abstract public InputStream getBody() throws IOException(Code) | | Returns an InputStream for the respsonse body access.
an InputStream , which can be used to fetch theresponse body. throws: IOException - if an I/O error is encounted while retrieving the responsebody. |
getHeaders | abstract public Map<String, List<String>> getHeaders() throws IOException(Code) | | Returns an immutable Map , which contains the response
headers information.
an immutable Map , which contains the responseheaders. The map is from response header field names to lists offield values. Field name is a String , and thefield values list is a List of String .Thestatus line as its field name has null as its list of fieldvalues. throws: IOException - if an I/O error is encounted while retrieving the responseheaders. |
|
|