|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientResponse
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response |
|---|
Response.ResponseType |
| Field Summary |
|---|
| Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants |
|---|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE |
| Method Summary | ||
|---|---|---|
String |
getCharacterEncoding()
Return the character set encoding specified in the ContentType header, if any |
|
|
getDocument()
If the response contains an XML document, parse the document |
|
|
getDocument(Parser parser)
If the response contains an XML document, parse the document using the specified Parser |
|
|
getDocument(ParserOptions options)
If the response contains an XML document, parse the document using the specified ParserOptions |
|
|
getDocument(Parser parser,
ParserOptions options)
If the response contains an XML document, parse the document using the specified Parser and ParserOptions |
|
InputStream |
getInputStream()
Returns the inputstream used to read data from this response |
|
String |
getMethod()
Return the request method |
|
Reader |
getReader()
Returns a reader used to read data from this response. |
|
Reader |
getReader(String charset)
Returns a reader used to read data from this response. |
|
Date |
getServerDate()
Return the server-specified date returned in the response |
|
String |
getUri()
Return the request URI. |
|
void |
release()
Release the resources associated with this response |
|
void |
setInputStream(InputStream in)
|
|
| Methods inherited from interface org.apache.abdera.protocol.Response |
|---|
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getStatus, getStatusText, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic |
| Methods inherited from interface org.apache.abdera.protocol.Message |
|---|
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform |
| Method Detail |
|---|
String getMethod()
String getUri()
void release()
InputStream getInputStream()
throws IOException
IOException
Reader getReader()
throws IOException
IOException
Reader getReader(String charset)
throws IOException
IOExceptionvoid setInputStream(InputStream in)
<T extends Element> Document<T> getDocument()
throws ParseException
ParseException
<T extends Element> Document<T> getDocument(ParserOptions options)
throws ParseException
ParseException
<T extends Element> Document<T> getDocument(Parser parser)
throws ParseException
ParseException
<T extends Element> Document<T> getDocument(Parser parser,
ParserOptions options)
throws ParseException
ParseExceptionDate getServerDate()
String getCharacterEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||