Uses of Interface
org.springframework.web.reactive.function.server.EntityResponse.Builder
Packages that use EntityResponse.Builder
Package
Description
Provides the types that make up Spring's functional web framework for Reactive environments.
-
Uses of EntityResponse.Builder in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return EntityResponse.BuilderModifier and TypeMethodDescriptionSet the set of allowedHTTP methods, as specified by theAllowheader.EntityResponse.Builder.allow(org.springframework.http.HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.EntityResponse.Builder.cacheControl(org.springframework.http.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(org.springframework.http.MediaType contentType) Set the media type of the body, as specified by theContent-Typeheader.EntityResponse.Builder.cookie(org.springframework.http.ResponseCookie cookie) Add the given cookie to the response.EntityResponse.Builder.cookies(Consumer<org.springframework.util.MultiValueMap<String, org.springframework.http.ResponseCookie>> 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 body) Create a builder with the given object.static <T> EntityResponse.Builder<T>EntityResponse.fromProducer(T producer, Class<?> elementClass) Create a builder with the given producer.static <T> EntityResponse.Builder<T>EntityResponse.fromProducer(T producer, org.springframework.core.ParameterizedTypeReference<?> typeReference) Create a builder with the given producer.static <T,P extends Publisher<T>>
EntityResponse.Builder<P>EntityResponse.fromPublisher(P publisher, Class<T> elementClass) Create a builder with the given publisher.static <T,P extends Publisher<T>>
EntityResponse.Builder<P>EntityResponse.fromPublisher(P publisher, org.springframework.core.ParameterizedTypeReference<T> typeReference) Create a builder with the given publisher.Add the given header value(s) under the given name.Manipulate this entity's headers with the given consumer.EntityResponse.Builder.headers(org.springframework.http.HttpHeaders headers) Copy the given headers into the entity's headers map.Add a serialization hint likeJackson2CodecSupport.JSON_VIEW_HINTto customize how the body will be serialized.Customize the serialization hints 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(org.springframework.http.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.