Package org.infinispan.rest
Class NettyRestResponse.Builder
java.lang.Object
org.infinispan.rest.NettyRestResponse.Builder
- All Implemented Interfaces:
RestResponseBuilder<NettyRestResponse.Builder>
- Enclosing class:
NettyRestResponse
public static class NettyRestResponse.Builder
extends Object
implements RestResponseBuilder<NettyRestResponse.Builder>
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(io.netty.handler.codec.http.FullHttpRequest request, boolean ssl) Builder
(RestRequest request, boolean ssl) -
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
(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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.rest.framework.impl.RestResponseBuilder
buildFuture
-
Constructor Details
-
Builder
-
Builder
public Builder(io.netty.handler.codec.http.FullHttpRequest request, boolean ssl)
-
-
Method Details
-
build
- Specified by:
build
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
header
- Specified by:
header
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
status
-
status
- Specified by:
status
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
entity
- Specified by:
entity
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
eTag
- Specified by:
eTag
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
getEntity
- Specified by:
getEntity
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
contentType
- Specified by:
contentType
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
contentType
- Specified by:
contentType
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
contentLength
- Specified by:
contentLength
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
expires
- Specified by:
expires
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
authenticate
-
lastModified
- Specified by:
lastModified
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
location
- Specified by:
location
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
addProcessedDate
- Specified by:
addProcessedDate
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
cacheControl
- Specified by:
cacheControl
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
getHeader
- Specified by:
getHeader
in interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
timeToLive
-
maxIdle
-
created
-
lastUsed
-
clusterPrimaryOwner
-
clusterBackupOwners
-
clusterNodeName
-
clusterServerAddress
-
getHttpStatus
public io.netty.handler.codec.http.HttpResponseStatus getHttpStatus()
-