Package | Description |
---|---|
org.springframework.web.servlet.function |
Provides the types that make up Spring's functional web framework for Servlet environments.
|
Modifier and Type | Method and Description |
---|---|
RenderingResponse.Builder |
RenderingResponse.Builder.cookie(Cookie cookie)
Add the given cookie to the response.
|
RenderingResponse.Builder |
RenderingResponse.Builder.cookies(Consumer<MultiValueMap<String,Cookie>> cookiesConsumer)
Manipulate this response's cookies with the given consumer.
|
static RenderingResponse.Builder |
RenderingResponse.create(String name)
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.
|
RenderingResponse.Builder |
RenderingResponse.Builder.header(String headerName,
String... headerValues)
Add the given header value(s) under the given name.
|
RenderingResponse.Builder |
RenderingResponse.Builder.headers(Consumer<HttpHeaders> headersConsumer)
Manipulate this response's headers with the given consumer.
|
RenderingResponse.Builder |
RenderingResponse.Builder.modelAttribute(Object attribute)
Add the supplied attribute to the model using a
generated name.
|
RenderingResponse.Builder |
RenderingResponse.Builder.modelAttribute(String name,
Object value)
Add the supplied attribute value under the supplied name.
|
RenderingResponse.Builder |
RenderingResponse.Builder.modelAttributes(Collection<?> attributes)
Copy all attributes in the supplied
Collection into the model,
using attribute name generation for each element. |
RenderingResponse.Builder |
RenderingResponse.Builder.modelAttributes(Map<String,?> attributes)
Copy all attributes in the supplied
Map into the model. |
RenderingResponse.Builder |
RenderingResponse.Builder.modelAttributes(Object... attributes)
Copy all attributes in the supplied array into the model,
using attribute name generation for each element.
|
RenderingResponse.Builder |
RenderingResponse.Builder.status(HttpStatus status)
Set the HTTP status.
|
RenderingResponse.Builder |
RenderingResponse.Builder.status(int status)
Set the HTTP status.
|