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 java.lang.Object implements org.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public NettyRestResponse build()
- Specified by:
build
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
header
public NettyRestResponse.Builder header(java.lang.String name, java.lang.Object value)
- Specified by:
header
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
status
public NettyRestResponse.Builder status(io.netty.handler.codec.http.HttpResponseStatus httpStatus)
-
status
public NettyRestResponse.Builder status(int status)
- Specified by:
status
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
entity
public NettyRestResponse.Builder entity(java.lang.Object entity)
- Specified by:
entity
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
eTag
public NettyRestResponse.Builder eTag(java.lang.String tag)
- Specified by:
eTag
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
getStatus
public int getStatus()
- Specified by:
getStatus
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
contentType
public NettyRestResponse.Builder contentType(MediaType mediaType)
- Specified by:
contentType
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
contentType
public NettyRestResponse.Builder contentType(java.lang.String mediaType)
- Specified by:
contentType
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
contentLength
public NettyRestResponse.Builder contentLength(long length)
- Specified by:
contentLength
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
expires
public NettyRestResponse.Builder expires(java.util.Date expires)
- Specified by:
expires
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
authenticate
public NettyRestResponse.Builder authenticate(java.lang.String authentication)
-
lastModified
public NettyRestResponse.Builder lastModified(java.lang.Long epoch)
- Specified by:
lastModified
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
addProcessedDate
public NettyRestResponse.Builder addProcessedDate(java.util.Date d)
- Specified by:
addProcessedDate
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
cacheControl
public NettyRestResponse.Builder cacheControl(CacheControl cacheControl)
- Specified by:
cacheControl
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
getHeader
public java.lang.Object getHeader(java.lang.String header)
- Specified by:
getHeader
in interfaceorg.infinispan.rest.framework.impl.RestResponseBuilder<NettyRestResponse.Builder>
-
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(java.lang.String primaryOwner)
-
clusterBackupOwners
public NettyRestResponse.Builder clusterBackupOwners(java.lang.String primaryOwner)
-
clusterNodeName
public NettyRestResponse.Builder clusterNodeName(java.lang.String nodeName)
-
clusterServerAddress
public NettyRestResponse.Builder clusterServerAddress(java.lang.String serverAddress)
-
getHttpStatus
public io.netty.handler.codec.http.HttpResponseStatus getHttpStatus()
-
-