Interface ClientResponse
-
- All Superinterfaces:
Message,ProtocolConstants,Response
- All Known Subinterfaces:
CachedResponse
- All Known Implementing Classes:
AbstractClientResponse,CachedResponseBase,CommonsResponse,InMemoryCachedResponse
@Deprecated public interface ClientResponse extends Response
Deprecated.
-
-
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetCharacterEncoding()Deprecated.Return the character set encoding specified in the ContentType header, if any<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument()Deprecated.If the response contains an XML document, parse the document<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.Parser parser)Deprecated.If the response contains an XML document, parse the document using the specified Parser<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.ParserOptions options)Deprecated.If the response contains an XML document, parse the document using the specified ParserOptions<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options)Deprecated.If the response contains an XML document, parse the document using the specified Parser and ParserOptionsInputStreamgetInputStream()Deprecated.Returns the inputstream used to read data from this responseStringgetMethod()Deprecated.Return the request methodReadergetReader()Deprecated.Returns a reader used to read data from this response.ReadergetReader(String charset)Deprecated.Returns a reader used to read data from this response.DategetServerDate()Deprecated.Return the server-specified date returned in the responseStringgetUri()Deprecated.Return the request URI.voidrelease()Deprecated.Release the resources associated with this responsevoidsetInputStream(InputStream in)Deprecated.-
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
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
-
-
-
-
Method Detail
-
getMethod
String getMethod()
Deprecated.Return the request method
-
getUri
String getUri()
Deprecated.Return the request URI. The request was redirected, this will return the new URI
-
release
void release()
Deprecated.Release the resources associated with this response
-
getInputStream
InputStream getInputStream() throws IOException
Deprecated.Returns the inputstream used to read data from this response- Throws:
IOException
-
getReader
Reader getReader() throws IOException
Deprecated.Returns a reader used to read data from this response. Will use the character set declared in the Content-Type to create the reader- Throws:
IOException
-
getReader
Reader getReader(String charset) throws IOException
Deprecated.Returns a reader used to read data from this response. Will use the character set specified to create the reader- Throws:
IOException
-
setInputStream
void setInputStream(InputStream in)
Deprecated.
-
getDocument
<T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument() throws org.apache.abdera.parser.ParseExceptionDeprecated.If the response contains an XML document, parse the document- Throws:
org.apache.abdera.parser.ParseException
-
getDocument
<T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseExceptionDeprecated.If the response contains an XML document, parse the document using the specified ParserOptions- Throws:
org.apache.abdera.parser.ParseException
-
getDocument
<T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.Parser parser) throws org.apache.abdera.parser.ParseExceptionDeprecated.If the response contains an XML document, parse the document using the specified Parser- Throws:
org.apache.abdera.parser.ParseException
-
getDocument
<T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseExceptionDeprecated.If the response contains an XML document, parse the document using the specified Parser and ParserOptions- Throws:
org.apache.abdera.parser.ParseException
-
getServerDate
Date getServerDate()
Deprecated.Return the server-specified date returned in the response
-
getCharacterEncoding
String getCharacterEncoding()
Deprecated.Return the character set encoding specified in the ContentType header, if any
-
-