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.HttpResponseStatusintlastModified(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, waitMethods 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:
buildin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
header
- Specified by:
headerin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
status
-
status
- Specified by:
statusin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
entity
- Specified by:
entityin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
eTag
- Specified by:
eTagin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
getEntity
- Specified by:
getEntityin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
contentType
- Specified by:
contentTypein interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
contentType
- Specified by:
contentTypein interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
contentLength
- Specified by:
contentLengthin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
expires
- Specified by:
expiresin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
authenticate
-
lastModified
- Specified by:
lastModifiedin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
location
- Specified by:
locationin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
addProcessedDate
- Specified by:
addProcessedDatein interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
cacheControl
- Specified by:
cacheControlin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
getHeader
- Specified by:
getHeaderin interfaceRestResponseBuilder<NettyRestResponse.Builder>
-
timeToLive
-
maxIdle
-
created
-
lastUsed
-
clusterPrimaryOwner
-
clusterBackupOwners
-
clusterNodeName
-
clusterServerAddress
-
getHttpStatus
public io.netty.handler.codec.http.HttpResponseStatus getHttpStatus()
-