Package | Description |
---|---|
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework.
|
Modifier and Type | Method and Description |
---|---|
EntityResponse.Builder<T> |
EntityResponse.Builder.allow(HttpMethod... allowedMethods)
Set the set of allowed
HTTP methods , as specified
by the Allow header. |
EntityResponse.Builder<T> |
EntityResponse.Builder.allow(java.util.Set<HttpMethod> allowedMethods)
Set the set of allowed
HTTP methods , as specified
by the Allow header. |
EntityResponse.Builder<T> |
EntityResponse.Builder.cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1
Cache-Control header. |
EntityResponse.Builder<T> |
EntityResponse.Builder.contentLength(long contentLength)
Set the length of the body in bytes, as specified by the
Content-Length header. |
EntityResponse.Builder<T> |
EntityResponse.Builder.contentType(MediaType contentType)
Set the media type of the body, as specified by the
Content-Type header. |
EntityResponse.Builder<T> |
EntityResponse.Builder.cookie(ResponseCookie cookie)
Add the given cookie to the response.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.cookies(java.util.function.Consumer<MultiValueMap<java.lang.String,ResponseCookie>> cookiesConsumer)
Manipulate this response's cookies with the given consumer.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.eTag(java.lang.String etag)
Set the entity tag of the body, as specified by the
ETag header. |
static <T> EntityResponse.Builder<T> |
EntityResponse.fromObject(T t)
Create a builder with the given object.
|
static <T,P extends org.reactivestreams.Publisher<T>> |
EntityResponse.fromPublisher(P publisher,
java.lang.Class<T> elementClass)
Create a builder with the given publisher.
|
static <T,P extends org.reactivestreams.Publisher<T>> |
EntityResponse.fromPublisher(P publisher,
ParameterizedTypeReference<T> typeReference)
Create a builder with the given publisher.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.header(java.lang.String headerName,
java.lang.String... headerValues)
Add the given header value(s) under the given name.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.headers(HttpHeaders headers)
Copy the given headers into the entity's headers map.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.hint(java.lang.String key,
java.lang.Object value)
Add a serialization hint like
Jackson2CodecSupport.JSON_VIEW_HINT to
customize how the body will be serialized. |
EntityResponse.Builder<T> |
EntityResponse.Builder.lastModified(java.time.ZonedDateTime lastModified)
Set the time the resource was last changed, as specified by the
Last-Modified header. |
EntityResponse.Builder<T> |
EntityResponse.Builder.location(java.net.URI location)
Set the location of a resource, as specified by the
Location header. |
EntityResponse.Builder<T> |
EntityResponse.Builder.status(HttpStatus status)
Set the HTTP status.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.status(int status)
Set the HTTP status.
|
EntityResponse.Builder<T> |
EntityResponse.Builder.varyBy(java.lang.String... requestHeaders)
Configure one or more request header names (e.g.
|