public interface RenderingResponse extends ServerResponse
ServerResponse
that exposes model and template data.Modifier and Type | Interface and Description |
---|---|
static interface |
RenderingResponse.Builder
Defines a builder for
RenderingResponse . |
ServerResponse.BodyBuilder, ServerResponse.Context, ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>
Modifier and Type | Method and Description |
---|---|
static RenderingResponse.Builder |
create(java.lang.String name)
Create a builder with the given template name.
|
static RenderingResponse.Builder |
from(RenderingResponse other)
Create a builder with the template name, status code, headers and model of the given response.
|
java.util.Map<java.lang.String,java.lang.Object> |
model()
Return the unmodifiable model map.
|
java.lang.String |
name()
Return the name of the template to be rendered.
|
accepted, badRequest, cookies, created, from, headers, noContent, notFound, ok, permanentRedirect, seeOther, status, statusCode, temporaryRedirect, unprocessableEntity, writeTo
java.lang.String name()
java.util.Map<java.lang.String,java.lang.Object> model()
static RenderingResponse.Builder from(RenderingResponse other)
other
- the response to copy the values fromstatic RenderingResponse.Builder create(java.lang.String name)
name
- the name of the template to render