info.magnolia.module.cache.filter
Class InMemoryCachedEntry
java.lang.Object
info.magnolia.module.cache.filter.ContentCachedEntry
info.magnolia.module.cache.filter.InMemoryCachedEntry
- All Implemented Interfaces:
- CachedEntry, Serializable
public class InMemoryCachedEntry
- extends ContentCachedEntry
Cache entry keeping the content in memory. Stores a gzipped and non-gzipped version.
- Version:
- $Id$
- Author:
- pbaerfuss
- See Also:
- Serialized Form
Constructor Summary |
InMemoryCachedEntry(byte[] out,
String contentType,
String characterEncoding,
int statusCode,
org.apache.commons.collections.MultiMap headers,
long modificationDate,
String originalUrl,
int timeToLiveInSeconds)
|
Methods inherited from class info.magnolia.module.cache.filter.ContentCachedEntry |
addHeaders, getCharacterEncoding, getContentType, getHeaders, getLastModificationTime, getOriginalURL, getStatusCode, getTimeToLiveInSeconds, isAcceptsGzip, replay, toString |
InMemoryCachedEntry
public InMemoryCachedEntry(byte[] out,
String contentType,
String characterEncoding,
int statusCode,
org.apache.commons.collections.MultiMap headers,
long modificationDate,
String originalUrl,
int timeToLiveInSeconds)
throws IOException
- Throws:
IOException
canServeGzipContent
protected boolean canServeGzipContent()
- Specified by:
canServeGzipContent
in class ContentCachedEntry
writeContent
protected void writeContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
boolean acceptsGzipEncoding)
throws IOException
- Specified by:
writeContent
in class ContentCachedEntry
- Throws:
IOException
getPlainContent
public byte[] getPlainContent()
getGzippedContent
public byte[] getGzippedContent()
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.