Uses of Interface
org.springframework.web.servlet.function.EntityResponse.Builder
Package
Description
Provides the types that make up Spring's functional web framework for Servlet environments.
-
Uses of EntityResponse.Builder in org.springframework.web.servlet.function
Modifier and TypeMethodDescriptionEntityResponse.Builder.allow
(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.EntityResponse.Builder.allow
(HttpMethod... allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.EntityResponse.Builder.cacheControl
(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.EntityResponse.Builder.contentLength
(long contentLength) Set the length of the body in bytes, as specified by theContent-Length
header.EntityResponse.Builder.contentType
(MediaType contentType) Set the media type of the body, as specified by theContent-Type
header.Add the given cookie to the response.EntityResponse.Builder.cookies
(Consumer<MultiValueMap<String, Cookie>> cookiesConsumer) Manipulate this response's cookies with the given consumer.Set the entity tag of the body, as specified by theETag
header.static <T> EntityResponse.Builder<T>
EntityResponse.fromObject
(T t) Create a builder with the given object.static <T> EntityResponse.Builder<T>
EntityResponse.fromObject
(T t, ParameterizedTypeReference<T> entityType) Create a builder with the given object and type reference.Add the given header value(s) under the given name.EntityResponse.Builder.headers
(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.EntityResponse.Builder.lastModified
(Instant lastModified) Set the time the resource was last changed, as specified by theLast-Modified
header.EntityResponse.Builder.lastModified
(ZonedDateTime lastModified) Set the time the resource was last changed, as specified by theLast-Modified
header.Set the location of a resource, as specified by theLocation
header.EntityResponse.Builder.status
(int status) Set the HTTP status.EntityResponse.Builder.status
(HttpStatusCode status) Set the HTTP status.Configure one or more request header names (for example, "Accept-Language") to add to the "Vary" response header to inform clients that the response is subject to content negotiation and variances based on the value of the given request headers.