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.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.
|
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, created, from, headers, noContent, notFound, ok, status, statusCode, unprocessableEntity, writeTo
java.lang.String name()
java.util.Map<java.lang.String,java.lang.Object> model()
static RenderingResponse.Builder create(java.lang.String name)
name
- the name of the template to render