|
|||||||||
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
org.apache.abdera.protocol.client.CommonsResponse
public class CommonsResponse
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response |
---|
Response.ResponseType |
Field Summary |
---|
Fields inherited from class org.apache.abdera.protocol.client.AbstractClientResponse |
---|
abdera, in, now, parser, 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 |
CommonsResponse(Abdera abdera,
org.apache.commons.httpclient.HttpMethod method)
|
Method Summary | |
---|---|
java.util.Date |
getDateHeader(java.lang.String header)
Return the named HTTP header as a java.util.Date |
java.lang.String |
getHeader(java.lang.String header)
Return the value of the named HTTP header |
java.lang.String[] |
getHeaderNames()
Return a listing of HTTP header names |
java.util.Map<java.lang.String,java.util.List<java.lang.Object>> |
getHeaders()
Return all of the HTTP headers |
java.util.List<java.lang.Object> |
getHeaders(java.lang.String header)
Return the values of the named HTTP header |
org.apache.commons.httpclient.HttpMethod |
getHttpMethod()
|
java.io.InputStream |
getInputStream()
Return the inputstream for reading the content of the response. |
java.lang.String |
getMethod()
Return the request method |
int |
getStatus()
Return the status code of the response |
java.lang.String |
getStatusText()
Return the status text of the response |
java.lang.String |
getUri()
Return the request URI |
void |
release()
Release the resources associated with this response |
Methods inherited from class org.apache.abdera.protocol.client.AbstractClientResponse |
---|
getDocument, getDocument, getDocument, getDocument, getParser, getServerDate, parse_cc, setInputStream |
Methods inherited from class org.apache.abdera.protocol.util.AbstractResponse |
---|
getAge, getAllow, getCacheControl, getContentLanguage, getContentLength, getContentLocation, getContentType, 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 |
---|
getDocument, getDocument, getDocument, getDocument, getServerDate, setInputStream |
Methods inherited from interface org.apache.abdera.protocol.Response |
---|
getAge, getAllow, getCacheControl, getContentLanguage, getContentLength, getContentLocation, getContentType, getExpires, getLastModified, getLocation, getMaxAge, getNoCacheHeaders, getPrivateHeaders, getSlug, getSMaxAge, getType, getUriHeader, isMustRevalidate, isNoCache, isNoStore, isNoTransform, isPrivate, isProxyRevalidate, isPublic |
Methods inherited from interface org.apache.abdera.protocol.ResponseInfo |
---|
getEntityTag |
Constructor Detail |
---|
protected CommonsResponse(Abdera abdera, org.apache.commons.httpclient.HttpMethod method)
Method Detail |
---|
public org.apache.commons.httpclient.HttpMethod getHttpMethod()
public java.lang.String getMethod()
getMethod
in interface ClientResponse
public int getStatus()
getStatus
in interface Response
public java.lang.String getStatusText()
getStatusText
in interface Response
public void release()
release
in interface ClientResponse
public java.lang.String getHeader(java.lang.String header)
getHeader
in interface Response
public java.util.List<java.lang.Object> getHeaders(java.lang.String header)
getHeaders
in interface Response
public java.util.Map<java.lang.String,java.util.List<java.lang.Object>> getHeaders()
getHeaders
in interface Response
public java.lang.String[] getHeaderNames()
getHeaderNames
in interface Response
public java.lang.String getUri()
getUri
in interface ClientResponse
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface ClientResponse
getInputStream
in class AbstractClientResponse
java.io.IOException
public java.util.Date getDateHeader(java.lang.String header)
getDateHeader
in interface Response
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |