Class InMemoryCachedResponse
- 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.cache.CachedResponseBase
-
- org.apache.abdera.protocol.client.cache.InMemoryCachedResponse
-
- All Implemented Interfaces:
CachedResponse,ClientResponse,Message,Response,ProtocolConstants
@Deprecated public class InMemoryCachedResponse extends CachedResponseBase implements CachedResponse
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
-
-
Constructor Summary
Constructors Constructor Description InMemoryCachedResponse(org.apache.abdera.Abdera abdera, Cache cache, Object key, ClientResponse response)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetHeader(String header)Deprecated.Get the value of the specified headerString[]getHeaderNames()Deprecated.Return a listing of header namesMap<String,Object[]>getHeaders()Deprecated.Object[]getHeaders(String header)Deprecated.Return multiple values for the specified headerInputStreamgetInputStream()Deprecated.Get the response payload as an input streamStringgetMethod()Deprecated.Return the request methodintgetStatus()Deprecated.Get the specific response status codeStringgetStatusText()Deprecated.Get the response status textStringgetUri()Deprecated.Return the request URI.voidsetInputStream(InputStream in)Deprecated.Set the response input stream (used internally by Abdera)-
Methods inherited from class org.apache.abdera.protocol.client.cache.CachedResponseBase
getCache, getCachedTime, getCurrentAge, getFreshnessLifetime, getHowStale, getInitialAge, getKey, getResidentAge, isFresh, release
-
Methods inherited from class org.apache.abdera.protocol.client.AbstractClientResponse
getCharacterEncoding, getDateHeader, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDate
-
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.cache.CachedResponse
getCache, getCachedTime, getCurrentAge, getFreshnessLifetime, getHowStale, getInitialAge, getKey, getResidentAge, isFresh
-
Methods inherited from interface org.apache.abdera.protocol.client.ClientResponse
getCharacterEncoding, getDocument, getDocument, getDocument, getDocument, getReader, getReader, getServerDate, release
-
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
-
-
-
-
Constructor Detail
-
InMemoryCachedResponse
public InMemoryCachedResponse(org.apache.abdera.Abdera abdera, Cache cache, Object key, ClientResponse response) throws IOExceptionDeprecated.- Throws:
IOException
-
-
Method Detail
-
getMethod
public String getMethod()
Deprecated.Description copied from interface:ClientResponseReturn the request method- Specified by:
getMethodin interfaceClientResponse
-
getHeader
public String getHeader(String header)
Deprecated.Description copied from interface:MessageGet the value of the specified header
-
getHeaderNames
public String[] getHeaderNames()
Deprecated.Description copied from interface:MessageReturn a listing of header names- Specified by:
getHeaderNamesin interfaceMessage
-
getHeaders
public Object[] getHeaders(String header)
Deprecated.Description copied from interface:MessageReturn multiple values for the specified header- Specified by:
getHeadersin interfaceMessage
-
getStatus
public int getStatus()
Deprecated.Description copied from interface:ResponseGet the specific response status code
-
getStatusText
public String getStatusText()
Deprecated.Description copied from interface:ResponseGet the response status text- Specified by:
getStatusTextin interfaceResponse
-
getUri
public String getUri()
Deprecated.Description copied from interface:ClientResponseReturn the request URI. The request was redirected, this will return the new URI- Specified by:
getUriin interfaceClientResponse
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.Description copied from class:AbstractClientResponseGet the response payload as an input stream- Specified by:
getInputStreamin interfaceClientResponse- Overrides:
getInputStreamin classAbstractClientResponse- Throws:
IOException
-
setInputStream
public void setInputStream(InputStream in)
Deprecated.Description copied from class:AbstractClientResponseSet the response input stream (used internally by Abdera)- Specified by:
setInputStreamin interfaceClientResponse- Overrides:
setInputStreamin classAbstractClientResponse
-
-