public class PageCacheElement extends CacheElement
Constructor and Description |
---|
PageCacheElement(String contentType,
Map<String,PairObject<Type.HeaderType,Object>> headers,
byte[] body,
boolean storeGzipped) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
byte[] |
getGzippedBody() |
Map<String,PairObject<Type.HeaderType,Object>> |
getHeaders() |
byte[] |
getUnGzippedBody() |
boolean |
isStoreGzipped() |
void |
setTimeout(int timeout) |
getLastUpdateTime, getObject, getTimeout, isExpired, setObject, touch
public PageCacheElement(String contentType, Map<String,PairObject<Type.HeaderType,Object>> headers, byte[] body, boolean storeGzipped) throws Exception
Exception
public String getContentType()
public byte[] getGzippedBody()
public Map<String,PairObject<Type.HeaderType,Object>> getHeaders()
public byte[] getUnGzippedBody() throws IOException
IOException
public void setTimeout(int timeout)
setTimeout
in class CacheElement
public boolean isStoreGzipped()
Copyright © 2022. All rights reserved.