ServerResponse that exposes model and template data.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | RenderingResponse.
Defines a builder for |
| Modifier and Type | Method and Description |
|---|---|
| public static RenderingResponse. | |
| public static RenderingResponse. | Returns: the created builderthe response to copy the values from other)Create a builder with the template name, status code, headers and model of the given response. |
| public Map | |
| public String |
| create | back to summary |
|---|---|
| public static RenderingResponse. Create a builder with the given template name.
| |
| from | back to summary |
|---|---|
| public static RenderingResponse. Create a builder with the template name, status code, headers and model of the given response.
| |
| model | back to summary |
|---|---|
| public Map Return the unmodifiable model map. | |
| name | back to summary |
|---|---|
| public String name() Return the name of the template to be rendered. | |
RenderingResponse.
| Modifier and Type | Method and Description |
|---|---|
| public RenderingResponse | |
| public RenderingResponse. | |
| public RenderingResponse. | Returns: this buildera function that consumes the cookies cookiesConsumer)Manipulate this response's cookies with the given consumer. |
| public RenderingResponse. | |
| public RenderingResponse. | Returns: this buildera function that consumes the headersConsumer)HttpHeadersManipulate this response's headers with the given consumer. |
| public RenderingResponse. | modelAttribute(Object
the model attribute value (never attribute)null)Add the supplied attribute to the model using a generated name. |
| public RenderingResponse. | modelAttribute(String
the name of the model attribute (never name, Object null)the model attribute value (can be value)null)Add the supplied attribute value under the supplied name. |
| public RenderingResponse. | modelAttributes(Object... attributes)
Copy all attributes in the supplied array into the model, using attribute name generation for each element. |
| public RenderingResponse. | modelAttributes(Collection<?> attributes)
Copy all attributes in the supplied |
| public RenderingResponse. | |
| public RenderingResponse. | |
| public RenderingResponse. |
| build | back to summary |
|---|---|
| public RenderingResponse build() Build the response.
| |
| cookie | back to summary |
|---|---|
| public RenderingResponse. Add the given cookie to the response.
| |
| cookies | back to summary |
|---|---|
| public RenderingResponse. Manipulate this response's cookies with the given consumer. The
cookies provided to the consumer are "live", so that the consumer can be used to
overwrite existing cookies,
remove cookies, or use any of the other
| |
| header | back to summary |
|---|---|
| public RenderingResponse. Add the given header value(s) under the given name.
| |
| headers | back to summary |
|---|---|
| public RenderingResponse. Manipulate this response's headers with the given consumer. The
headers provided to the consumer are "live", so that the consumer can be used to
overwrite existing header values,
remove values, or use any of the other
| |
| modelAttribute | back to summary |
|---|---|
| public RenderingResponse. Add the supplied attribute to the model using a generated name. Note Empty
| |
| modelAttribute | back to summary |
|---|---|
| public RenderingResponse. Add the supplied attribute value under the supplied name. | |
| modelAttributes | back to summary |
|---|---|
| public RenderingResponse. Copy all attributes in the supplied array into the model, using attribute name generation for each element.
| |
| modelAttributes | back to summary |
|---|---|
| public RenderingResponse. Copy all attributes in the supplied
| |
| modelAttributes | back to summary |
|---|---|
| public RenderingResponse. Copy all attributes in the supplied
| |
| status | back to summary |
|---|---|
| public RenderingResponse. Set the HTTP status.
| |
| status | back to summary |
|---|---|
| public RenderingResponse. Set the HTTP status.
| |