public class CachedResponse extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
contentLength |
protected String |
contentType |
protected byte[] |
data |
protected org.springframework.http.HttpHeaders |
headers |
protected String |
queryString |
protected String |
servletPath |
Constructor and Description |
---|
CachedResponse(String id,
Site site,
javax.servlet.http.HttpServletRequest request,
int status,
String contentType,
byte[] data,
org.springframework.http.HttpHeaders headers,
int timeToLive) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getGzippedBody() |
long |
getHitCount() |
long |
incrementHit() |
boolean |
isOk() |
String |
toString() |
protected String servletPath
protected String queryString
protected String contentType
protected int contentLength
protected org.springframework.http.HttpHeaders headers
protected byte[] data
public long incrementHit()
public long getHitCount()
public boolean isOk()
public byte[] getGzippedBody() throws IOException
IOException
Copyright © 2011–2021 aiticon GmbH. All rights reserved.