Package org.infinispan.rest
Class NettyRestResponse.Builder
- java.lang.Object
-
- org.infinispan.rest.NettyRestResponse.Builder
-
- All Implemented Interfaces:
org.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
- Enclosing class:
- NettyRestResponse
public static class NettyRestResponse.Builder extends Object implements org.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public NettyRestResponse build()
-
header
public NettyRestResponse.Builder header(String name, Object value)
-
status
public NettyRestResponse.Builder status(io.netty.handler.codec.http.HttpResponseStatus httpStatus)
-
status
public NettyRestResponse.Builder status(int status)
-
entity
public NettyRestResponse.Builder entity(Object entity)
-
eTag
public NettyRestResponse.Builder eTag(String tag)
-
getStatus
public int getStatus()
-
getEntity
public Object getEntity()
-
contentType
public NettyRestResponse.Builder contentType(org.infinispan.commons.dataconversion.MediaType mediaType)
-
contentType
public NettyRestResponse.Builder contentType(String mediaType)
-
contentLength
public NettyRestResponse.Builder contentLength(long length)
-
expires
public NettyRestResponse.Builder expires(Date expires)
-
authenticate
public NettyRestResponse.Builder authenticate(String authentication)
-
lastModified
public NettyRestResponse.Builder lastModified(Long epoch)
-
location
public NettyRestResponse.Builder location(String location)
-
addProcessedDate
public NettyRestResponse.Builder addProcessedDate(Date d)
-
cacheControl
public NettyRestResponse.Builder cacheControl(CacheControl cacheControl)
-
timeToLive
public NettyRestResponse.Builder timeToLive(long timeToLive)
-
maxIdle
public NettyRestResponse.Builder maxIdle(long maxIdle)
-
created
public NettyRestResponse.Builder created(long created)
-
lastUsed
public NettyRestResponse.Builder lastUsed(long lastUsed)
-
clusterPrimaryOwner
public NettyRestResponse.Builder clusterPrimaryOwner(String primaryOwner)
-
clusterBackupOwners
public NettyRestResponse.Builder clusterBackupOwners(String primaryOwner)
-
clusterNodeName
public NettyRestResponse.Builder clusterNodeName(String nodeName)
-
clusterServerAddress
public NettyRestResponse.Builder clusterServerAddress(String serverAddress)
-
getHttpStatus
public io.netty.handler.codec.http.HttpResponseStatus getHttpStatus()
-
-