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 -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(String authentication) build()
cacheControl
(CacheControl cacheControl) clusterBackupOwners
(String primaryOwner) clusterNodeName
(String nodeName) clusterPrimaryOwner
(String primaryOwner) clusterServerAddress
(String serverAddress) contentLength
(long length) contentType
(String mediaType) contentType
(org.infinispan.commons.dataconversion.MediaType mediaType) created
(long created) io.netty.handler.codec.http.HttpResponseStatus
int
lastModified
(Long epoch) lastUsed
(long lastUsed) maxIdle
(long maxIdle) status
(int status) status
(io.netty.handler.codec.http.HttpResponseStatus httpStatus) timeToLive
(long timeToLive)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
header
-
status
-
status
-
entity
-
eTag
-
getStatus
public int getStatus() -
getEntity
-
contentType
public NettyRestResponse.Builder contentType(org.infinispan.commons.dataconversion.MediaType mediaType) -
contentType
-
contentLength
-
expires
-
authenticate
-
lastModified
-
location
-
addProcessedDate
-
cacheControl
-
getHeader
-
timeToLive
-
maxIdle
-
created
-
lastUsed
-
clusterPrimaryOwner
-
clusterBackupOwners
-
clusterNodeName
-
clusterServerAddress
-
getHttpStatus
public io.netty.handler.codec.http.HttpResponseStatus getHttpStatus()
-