public class InMemoryCachedResponse extends CachedResponseBase implements CachedResponse
Response.ResponseTypeNOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE| Constructor and Description |
|---|
InMemoryCachedResponse(Abdera abdera,
Cache cache,
java.lang.Object key,
ClientResponse response) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeader(java.lang.String header)
Get the value of the specified header
|
java.lang.String[] |
getHeaderNames()
Return a listing of header names
|
java.util.Map<java.lang.String,java.lang.Object[]> |
getHeaders() |
java.lang.Object[] |
getHeaders(java.lang.String header)
Return multiple values for the specified header
|
java.io.InputStream |
getInputStream()
Get the response payload as an input stream
|
java.lang.String |
getMethod()
Return the request method
|
int |
getStatus()
Get the specific response status code
|
java.lang.String |
getStatusText()
Get the response status text
|
java.lang.String |
getUri()
Return the request URI.
|
void |
setInputStream(java.io.InputStream in)
Set the response input stream (used internally by Abdera)
|
getCache, getCachedTime, getCurrentAge, getFreshnessLifetime, getHowStale, getInitialAge, getKey, getResidentAge, isFresh, releasegetCharacterEncoding, getDateHeader, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDategetAge, 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, waitgetCache, getCachedTime, getCurrentAge, getFreshnessLifetime, getHowStale, getInitialAge, getKey, getResidentAge, isFreshgetCharacterEncoding, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDate, releasegetAge, 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 InMemoryCachedResponse(Abdera abdera, Cache cache, java.lang.Object key, ClientResponse response) throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.Object[]> getHeaders()
public java.lang.String getMethod()
ClientResponsegetMethod in interface ClientResponsepublic java.lang.String getHeader(java.lang.String header)
Messagepublic java.lang.String[] getHeaderNames()
MessagegetHeaderNames in interface Messagepublic java.lang.Object[] getHeaders(java.lang.String header)
MessagegetHeaders in interface Messagepublic int getStatus()
Responsepublic java.lang.String getStatusText()
ResponsegetStatusText in interface Responsepublic java.lang.String getUri()
ClientResponsegetUri in interface ClientResponsepublic java.io.InputStream getInputStream()
throws java.io.IOException
AbstractClientResponsegetInputStream in interface ClientResponsegetInputStream in class AbstractClientResponsejava.io.IOExceptionpublic void setInputStream(java.io.InputStream in)
AbstractClientResponsesetInputStream in interface ClientResponsesetInputStream in class AbstractClientResponseCopyright © 2010 - 2020 Adobe. All Rights Reserved