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(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.
|
Map<String,Object> |
model()
Return the unmodifiable model map.
|
String |
name()
Return the name of the template to be rendered.
|
accepted, badRequest, created, from, headers, noContent, notFound, ok, permanentRedirect, seeOther, status, statusCode, temporaryRedirect, unprocessableEntity, writeTo
String name()
static RenderingResponse.Builder from(RenderingResponse other)
other
- the response to copy the values fromstatic RenderingResponse.Builder create(String name)
name
- the name of the template to render