public class CommonsResponse extends AbstractClientResponse implements ClientResponse
Response.ResponseTypeNOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE| Modifier and Type | Method and Description |
|---|---|
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.lang.Object[]> |
getHeaders()
Return all of the HTTP headers
|
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
|
getCharacterEncoding, getDateHeader, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDate, setInputStreamgetAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic, setMaxAge, setMustRevalidate, setNoCache, setNoCacheHeaders, setNoStore, setNoTransform, setPrivate, setPrivateHeaders, setProxyRevalidate, setPublicgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCharacterEncoding, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDate, setInputStreamgetAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublicgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformpublic org.apache.commons.httpclient.HttpMethod getHttpMethod()
public java.lang.String getMethod()
getMethod in interface ClientResponsepublic int getStatus()
public java.lang.String getStatusText()
getStatusText in interface Responsepublic void release()
release in interface ClientResponsepublic java.lang.String getHeader(java.lang.String header)
public java.lang.Object[] getHeaders(java.lang.String header)
getHeaders in interface Messagepublic java.util.Map<java.lang.String,java.lang.Object[]> getHeaders()
public java.lang.String[] getHeaderNames()
getHeaderNames in interface Messagepublic java.lang.String getUri()
getUri in interface ClientResponsepublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface ClientResponsegetInputStream in class AbstractClientResponsejava.io.IOExceptionCopyright © 2010 - 2019 Adobe. All Rights Reserved