Class SimpleRestResponse.Builder
java.lang.Object
org.infinispan.rest.framework.impl.SimpleRestResponse.Builder
- All Implemented Interfaces:
RestResponseBuilder<SimpleRestResponse.Builder>
- Enclosing class:
- SimpleRestResponse
public static class SimpleRestResponse.Builder
extends Object
implements RestResponseBuilder<SimpleRestResponse.Builder>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
cacheControl
(CacheControl cacheControl) contentLength
(long length) contentType
(String type) contentType
(MediaType type) int
lastModified
(Long epoch) status
(int status) 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
public Builder()
-
-
Method Details
-
build
- Specified by:
build
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
status
- Specified by:
status
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
entity
- Specified by:
entity
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
cacheControl
- Specified by:
cacheControl
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
header
- Specified by:
header
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
contentType
- Specified by:
contentType
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
contentType
- Specified by:
contentType
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
contentLength
- Specified by:
contentLength
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
expires
- Specified by:
expires
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
lastModified
- Specified by:
lastModified
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
addProcessedDate
- Specified by:
addProcessedDate
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
location
- Specified by:
location
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
eTag
- Specified by:
eTag
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
getEntity
- Specified by:
getEntity
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-
getHeader
- Specified by:
getHeader
in interfaceRestResponseBuilder<SimpleRestResponse.Builder>
-