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(String nodeName)
Adds
Cluster-Node-Name header. |
void |
clusterPrimaryOwner(String primaryOwner)
Adds
Cluster-Primary-Owner header. |
void |
clusterServerAddress(String serverAddress)
Adds
Cluster-Server-Address header. |
void |
etag(String etag)
Adds ETAG.
|
void |
expires(Date expires)
Adds
expires header. |
static InfinispanCacheResponse |
inReplyTo(InfinispanRequest request)
Creates an
InfinispanResponse as a reply to specific InfinispanRequest . |
void |
lastModified(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, toNettyHttpResponse
protected void addSpecificHeaders(io.netty.handler.codec.http.FullHttpResponse response)
addSpecificHeaders
in class InfinispanResponse
public static InfinispanCacheResponse inReplyTo(InfinispanRequest request)
InfinispanResponse
as a reply to specific InfinispanRequest
.request
- Request to reply to.public void etag(String etag)
etag
- ETag value to be added.public void cacheControl(CacheControl cacheControl)
cacheControl
- Cache Control headers.public void lastModified(Date lastModified)
last-modified
header.lastModified
- last-modified
header value.public void expires(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(String primaryOwner)
Cluster-Primary-Owner
header.primaryOwner
- Cluster-Primary-Owner
header value.public void clusterNodeName(String nodeName)
Cluster-Node-Name
header.nodeName
- Cluster-Node-Name
header value.public void clusterServerAddress(String serverAddress)
Cluster-Server-Address
header.serverAddress
- Cluster-Server-Address
header value.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.