Class CommonsResponse
- java.lang.Object
-
- org.apache.abdera.protocol.util.AbstractMessage
-
- org.apache.abdera.protocol.util.AbstractResponse
-
- org.apache.abdera.protocol.client.AbstractClientResponse
-
- org.apache.abdera.protocol.client.CommonsResponse
-
- All Implemented Interfaces:
ClientResponse,Message,Response,ProtocolConstants
@Deprecated public class CommonsResponse extends AbstractClientResponse implements ClientResponse
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 Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetHeader(String header)Deprecated.Return the value of the named HTTP headerString[]getHeaderNames()Deprecated.Return a listing of HTTP header namesMap<String,Object[]>getHeaders()Deprecated.Return all of the HTTP headersObject[]getHeaders(String header)Deprecated.Return the values of the named HTTP headerorg.apache.commons.httpclient.HttpMethodgetHttpMethod()Deprecated.InputStreamgetInputStream()Deprecated.Return the inputstream for reading the content of the response.StringgetMethod()Deprecated.Return the request methodintgetStatus()Deprecated.Return the status code of the responseStringgetStatusText()Deprecated.Return the status text of the responseStringgetUri()Deprecated.Return the request URIvoidrelease()Deprecated.Release the resources associated with this response-
Methods inherited from class org.apache.abdera.protocol.client.AbstractClientResponse
getCharacterEncoding, getDateHeader, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDate, setInputStream
-
Methods inherited from class org.apache.abdera.protocol.util.AbstractResponse
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic, setMaxAge, setMustRevalidate, setNoCache, setNoCacheHeaders, setNoStore, setNoTransform, setPrivate, setPrivateHeaders, setProxyRevalidate, setPublic
-
Methods inherited from class org.apache.abdera.protocol.util.AbstractMessage
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.abdera.protocol.client.ClientResponse
getCharacterEncoding, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDate, setInputStream
-
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
Methods inherited from interface org.apache.abdera.protocol.Response
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic
-
-
-
-
Method Detail
-
getHttpMethod
public org.apache.commons.httpclient.HttpMethod getHttpMethod()
Deprecated.
-
getMethod
public String getMethod()
Deprecated.Return the request method- Specified by:
getMethodin interfaceClientResponse
-
getStatus
public int getStatus()
Deprecated.Return the status code of the response
-
getStatusText
public String getStatusText()
Deprecated.Return the status text of the response- Specified by:
getStatusTextin interfaceResponse
-
release
public void release()
Deprecated.Release the resources associated with this response- Specified by:
releasein interfaceClientResponse
-
getHeader
public String getHeader(String header)
Deprecated.Return the value of the named HTTP header
-
getHeaders
public Object[] getHeaders(String header)
Deprecated.Return the values of the named HTTP header- Specified by:
getHeadersin interfaceMessage
-
getHeaderNames
public String[] getHeaderNames()
Deprecated.Return a listing of HTTP header names- Specified by:
getHeaderNamesin interfaceMessage
-
getUri
public String getUri()
Deprecated.Return the request URI- Specified by:
getUriin interfaceClientResponse
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.Return the inputstream for reading the content of the response. The InputStream returned will automatically decode Content-Encodings and will automatically release the response when the stream has been read fully.- Specified by:
getInputStreamin interfaceClientResponse- Overrides:
getInputStreamin classAbstractClientResponse- Throws:
IOException
-
-