Uses of Interface
org.springframework.web.servlet.function.EntityResponse.Builder
Packages that use 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
Methods in org.springframework.web.servlet.function that return EntityResponse.BuilderModifier and TypeMethodDescriptionEntityResponse.Builder.allow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.EntityResponse.Builder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.EntityResponse.Builder.cacheControl(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.EntityResponse.Builder.contentLength(long contentLength) Set the length of the body in bytes, as specified by theContent-Lengthheader.EntityResponse.Builder.contentType(MediaType contentType) Set the media type of the body, as specified by theContent-Typeheader.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 theETagheader.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-Modifiedheader.EntityResponse.Builder.lastModified(ZonedDateTime lastModified) Set the time the resource was last changed, as specified by theLast-Modifiedheader.Set the location of a resource, as specified by theLocationheader.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.