public class InfinispanCacheResponse extends InfinispanResponse
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSpecificHeaders(io.netty.handler.codec.http.FullHttpResponse response) |
void |
cacheControl(CacheControl cacheControl)
Adds Cache Control headers.
|
void |
clusterNodeName(java.lang.String nodeName)
Adds
Cluster-Node-Name header. |
void |
clusterPrimaryOwner(java.lang.String primaryOwner)
Adds
Cluster-Primary-Owner header. |
void |
clusterServerAddress(java.lang.String serverAddress)
Adds
Cluster-Server-Address header. |
void |
etag(java.lang.String etag)
Adds ETAG.
|
void |
expires(java.util.Date expires)
Adds
expires header. |
static InfinispanCacheResponse |
inReplyTo(InfinispanRequest request)
Creates an
InfinispanResponse as a reply to specific InfinispanRequest. |
void |
lastModified(java.util.Date lastModified)
Add
last-modified header. |
void |
maxIdle(long maxIdle)
Adds
maxIdleTimeSeconds header. |
void |
timeToLive(long lifespan) |
authenticate, charset, contentAsBytes, contentAsText, contentType, httpVersion, isKeepAlive, status, toNettyHttpResponseprotected void addSpecificHeaders(io.netty.handler.codec.http.FullHttpResponse response)
addSpecificHeaders in class InfinispanResponsepublic static InfinispanCacheResponse inReplyTo(InfinispanRequest request)
InfinispanResponse as a reply to specific InfinispanRequest.request - Request to reply to.public void etag(java.lang.String etag)
etag - ETag value to be added.public void cacheControl(CacheControl cacheControl)
cacheControl - Cache Control headers.public void lastModified(java.util.Date lastModified)
last-modified header.lastModified - last-modified header value.public void expires(java.util.Date expires)
expires header.expires - expires header value.public void timeToLive(long lifespan)
public void maxIdle(long maxIdle)
maxIdleTimeSeconds header.maxIdle - maxIdleTimeSeconds header value.public void clusterPrimaryOwner(java.lang.String primaryOwner)
Cluster-Primary-Owner header.primaryOwner - Cluster-Primary-Owner header value.public void clusterNodeName(java.lang.String nodeName)
Cluster-Node-Name header.nodeName - Cluster-Node-Name header value.public void clusterServerAddress(java.lang.String serverAddress)
Cluster-Server-Address header.serverAddress - Cluster-Server-Address header value.