java.lang.Object java.net.CacheResponse
Represent channels for retrieving resources from the ResponseCache. Instances of such a class provide a ReadableByteChannel that returns the entity body, and also a getHeaders() method which returns the associated response headers.
Constructor Summary | |
---|---|
CacheResponse()
|
Method Summary | |
---|---|
abstract ReadableByteChannel |
getBody()
Returns the response body as a ReadableByteChannel. |
abstract Map<String,List<String>> |
getHeaders()
Returns the response headers as a Map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheResponse()
Method Detail |
---|
public abstract Map<String,List<String>> getHeaders() throws IOException
IOException
- if an I/O error occurs
while getting the response headerspublic abstract ReadableByteChannel getBody() throws IOException
IOException
- if an I/O error occurs while
getting the response body