|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.protocol.util.AbstractResponse
org.apache.abdera.protocol.client.AbstractClientResponse
public abstract class AbstractClientResponse
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response |
---|
Response.ResponseType |
Field Summary | |
---|---|
protected Abdera |
abdera
|
protected java.io.InputStream |
in
|
protected java.util.Date |
now
|
protected Parser |
parser
|
protected java.util.Date |
response_date
|
Fields inherited from class org.apache.abdera.protocol.util.AbstractResponse |
---|
flags, max_age, nocache_headers, private_headers, smax_age |
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants |
---|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE |
Constructor Summary | |
---|---|
protected |
AbstractClientResponse(Abdera abdera)
|
Method Summary | ||
---|---|---|
java.lang.String |
getCharacterEncoding()
Return the character set encoding specified in the ContentType header, if ant |
|
|
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 |
|
java.io.InputStream |
getInputStream()
Returns the inputstream used to read data from this response |
|
protected Parser |
getParser()
|
|
java.io.Reader |
getReader()
Returns a reader used to read data from this response. |
|
java.io.Reader |
getReader(java.lang.String charset)
Returns a reader used to read data from this response. |
|
java.util.Date |
getServerDate()
Return the server-specified date returned in the response |
|
protected void |
parse_cc()
|
|
void |
setInputStream(java.io.InputStream in)
|
Methods inherited from class org.apache.abdera.protocol.util.AbstractResponse |
---|
getAge, getAllow, getCacheControl, getContentLanguage, getContentLength, getContentLocation, getContentType, getDecodedHeader, getEntityTag, getExpires, getLastModified, getLocation, getMaxAge, getNoCacheHeaders, getPrivateHeaders, getSlug, getSMaxAge, getType, getUriHeader, isMustRevalidate, isNoCache, isNoStore, isNoTransform, isPrivate, isProxyRevalidate, isPublic, setMaxAge, setMustRevalidate, setNoCache, setNoCacheHeaders, setNoStore, setNoTransform, setPrivate, setPrivateHeaders, setProxyRevalidate, setPublic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.abdera.protocol.client.ClientResponse |
---|
getMethod, getUri, release |
Methods inherited from interface org.apache.abdera.protocol.Response |
---|
getAge, getAllow, getCacheControl, getContentLanguage, getContentLength, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getEntityTag, getExpires, getHeader, getHeaderNames, getHeaders, getHeaders, getLastModified, getLocation, getMaxAge, getNoCacheHeaders, getPrivateHeaders, getSlug, getSMaxAge, getStatus, getStatusText, getType, getUriHeader, isMustRevalidate, isNoCache, isNoStore, isNoTransform, isPrivate, isProxyRevalidate, isPublic |
Field Detail |
---|
protected final Abdera abdera
protected final Parser parser
protected final java.util.Date now
protected java.io.InputStream in
protected java.util.Date response_date
Constructor Detail |
---|
protected AbstractClientResponse(Abdera abdera)
Method Detail |
---|
protected Parser getParser()
public <T extends Element> Document<T> getDocument() throws ParseException
ClientResponse
getDocument
in interface ClientResponse
ParseException
public <T extends Element> Document<T> getDocument(ParserOptions options) throws ParseException
ClientResponse
getDocument
in interface ClientResponse
ParseException
public <T extends Element> Document<T> getDocument(Parser parser) throws ParseException
ClientResponse
getDocument
in interface ClientResponse
ParseException
public <T extends Element> Document<T> getDocument(Parser parser, ParserOptions options) throws ParseException
ClientResponse
getDocument
in interface ClientResponse
ParseException
public java.io.InputStream getInputStream() throws java.io.IOException
ClientResponse
getInputStream
in interface ClientResponse
java.io.IOException
public void setInputStream(java.io.InputStream in)
setInputStream
in interface ClientResponse
public java.io.Reader getReader() throws java.io.IOException
ClientResponse
getReader
in interface ClientResponse
java.io.IOException
public java.io.Reader getReader(java.lang.String charset) throws java.io.IOException
ClientResponse
getReader
in interface ClientResponse
java.io.IOException
public java.util.Date getServerDate()
ClientResponse
getServerDate
in interface ClientResponse
protected void parse_cc()
public java.lang.String getCharacterEncoding()
ClientResponse
getCharacterEncoding
in interface ClientResponse
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |