This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
java.net
class CacheResponse
- Direct Known Subclasses:
- SecureCacheResponse
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.
- See Also (auto-generated):
-
ResponseCache
Method Summary |
abstract InputStream |
Returns the response body as an InputStream.
|
abstract Map |
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 |
CacheResponse
public CacheResponse()
-
getBody
public abstract InputStream getBody()
throws IOException
-
Returns the response body as an InputStream.
- Returns:
- an InputStream from which the response body can
be accessed
- Throws:
IOException
- if an I/O error occurs while
getting the response body
getHeaders
public abstract Map getHeaders()
throws IOException
-
Returns the response headers as a Map.
- Returns:
- 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
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.