Uses of Interface
org.springframework.web.servlet.function.RenderingResponse.Builder
Package
Description
Provides the types that make up Spring's functional web framework for Servlet environments.
-
Uses of RenderingResponse.Builder in org.springframework.web.servlet.function
Modifier and TypeMethodDescriptionAdd the given cookie to the response.RenderingResponse.Builder.cookies
(Consumer<MultiValueMap<String, Cookie>> cookiesConsumer) Manipulate this response's cookies with the given consumer.static RenderingResponse.Builder
Create a builder with the given template name.static RenderingResponse.Builder
RenderingResponse.from
(RenderingResponse other) Create a builder with the template name, status code, headers and model of the given response.Add the given header value(s) under the given name.RenderingResponse.Builder.headers
(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.RenderingResponse.Builder.modelAttribute
(Object attribute) Add the supplied attribute to the model using a generated name.RenderingResponse.Builder.modelAttribute
(String name, Object value) Add the supplied attribute value under the supplied name.RenderingResponse.Builder.modelAttributes
(Object... attributes) Copy all attributes in the supplied array into the model, using attribute name generation for each element.RenderingResponse.Builder.modelAttributes
(Collection<?> attributes) Copy all attributes in the suppliedCollection
into the model, using attribute name generation for each element.RenderingResponse.Builder.modelAttributes
(Map<String, ?> attributes) Copy all attributes in the suppliedMap
into the model.RenderingResponse.Builder.status
(int status) Set the HTTP status.RenderingResponse.Builder.status
(HttpStatus status) Set the HTTP status.