|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.CacheResponse
public abstract class CacheResponse
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.
Constructor Summary | |
---|---|
CacheResponse()
|
Method Summary | |
---|---|
abstract InputStream |
getBody()
Returns the response body as an InputStream. |
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 InputStream getBody() throws IOException
IOException
- if an I/O error occurs while
getting the response body
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.