public class DelegatingBlobCachedEntry extends ContentCachedEntry
CacheResponseWrapper
when it reaches its set threshold.CacheResponseWrapper
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
CONTENT_FILE_ATTRIBUTE |
Constructor and Description |
---|
DelegatingBlobCachedEntry(long contentLength,
String contentType,
String characterEncoding,
int statusCode,
org.apache.commons.collections.MultiMap headers,
long modificationDate,
String originalUrl,
int timeToLiveInSeconds) |
Modifier and Type | Method and Description |
---|---|
void |
bindContentFileToCurrentRequest(javax.servlet.http.HttpServletRequest request,
File contentFile) |
protected boolean |
canServeGzipContent() |
void |
replay(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
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, toString
public static final String CONTENT_FILE_ATTRIBUTE
public DelegatingBlobCachedEntry(long contentLength, 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
public void replay(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
replay
in interface CachedEntry
replay
in class ContentCachedEntry
chain
- a cache entry might want to delegate to the filter chain, see replay(HttpServletRequest, HttpServletResponse, FilterChain)
IOException
javax.servlet.ServletException
protected void writeContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, boolean acceptsGzipEncoding) throws IOException, javax.servlet.ServletException
writeContent
in class ContentCachedEntry
IOException
javax.servlet.ServletException
public void bindContentFileToCurrentRequest(javax.servlet.http.HttpServletRequest request, File contentFile)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.