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, touchpublic PageCacheElement(String contentType, Map<String,PairObject<Type.HeaderType,Object>> headers, byte[] body, boolean storeGzipped) throws Exception
Exceptionpublic String getContentType()
public byte[] getGzippedBody()
public Map<String,PairObject<Type.HeaderType,Object>> getHeaders()
public byte[] getUnGzippedBody()
throws IOException
IOExceptionpublic void setTimeout(int timeout)
setTimeout in class CacheElementpublic boolean isStoreGzipped()
Copyright © 2022. All rights reserved.