Uses of Interface
org.springframework.web.servlet.function.RenderingResponse.Builder
Packages that use 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
Methods in org.springframework.web.servlet.function that return RenderingResponse.BuilderModifier 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.BuilderCreate a builder with the given template name.static RenderingResponse.BuilderRenderingResponse.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 suppliedCollectioninto the model, using attribute name generation for each element.RenderingResponse.Builder.modelAttributes(Map<String, ?> attributes) Copy all attributes in the suppliedMapinto the model.RenderingResponse.Builder.status(int status) Set the HTTP status.RenderingResponse.Builder.status(HttpStatusCode status) Set the HTTP status.