public class InMemoryCachedEntry extends ContentCachedEntry
Constructor and Description |
---|
InMemoryCachedEntry(byte[] out,
String contentType,
String characterEncoding,
int statusCode,
org.apache.commons.collections.MultiMap headers,
long modificationDate,
String originalUrl,
int timeToLiveInSeconds) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canServeGzipContent() |
byte[] |
getGzippedContent() |
byte[] |
getPlainContent() |
protected void |
writeContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
boolean acceptsGzipEncoding) |
addHeaders, getCharacterEncoding, getContentType, getHeaders, getLastModificationTime, getOriginalURL, getStatusCode, getTimeToLiveInSeconds, isAcceptsGzip, replay, toString
public InMemoryCachedEntry(byte[] out, String contentType, String characterEncoding, int statusCode, org.apache.commons.collections.MultiMap headers, long modificationDate, String originalUrl, int timeToLiveInSeconds) throws IOException
IOException
protected boolean canServeGzipContent()
canServeGzipContent
in class ContentCachedEntry
protected void writeContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, boolean acceptsGzipEncoding) throws IOException
writeContent
in class ContentCachedEntry
IOException
public byte[] getPlainContent()
public byte[] getGzippedContent()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.