接口 RenderingResponse
- 所有超级接口:
ServerResponse
- 所有已知实现类:
DefaultRenderingResponseBuilder.DefaultRenderingResponse,ModelAndViewRenderingResponseBuilder.ModelAndViewRenderingResponse
Rendering-specific subtype of
ServerResponse that exposes model and template data.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
-
嵌套类概要
嵌套类修饰符和类型接口说明static interfaceDefines a builder forRenderingResponse.static interfaceDefines a builder forRenderingResponse.从接口继承的嵌套类/接口 cn.taketoday.web.handler.function.ServerResponse
ServerResponse.BodyBuilder, ServerResponse.Context, ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>, ServerResponse.SseBuilder -
字段概要
从接口继承的字段 cn.taketoday.web.handler.function.ServerResponse
NONE_RETURN_VALUE -
方法概要
修饰符和类型方法说明create(ModelAndView view) Create a builder with the given template name.static RenderingResponse.BuilderCreate a builder with the given template name.static RenderingResponse.Builderfrom(RenderingResponse other) Create a builder with the template name, status code, headers and model of the given response.model()Return the unmodifiable model map.name()Return the name of the template to be rendered.从接口继承的方法 cn.taketoday.web.handler.function.ServerResponse
cookies, headers, rawStatusCode, statusCode, writeTo
-
方法详细资料
-
name
String name()Return the name of the template to be rendered. -
model
Return the unmodifiable model map. -
from
Create a builder with the template name, status code, headers and model of the given response.- 参数:
other- the response to copy the values from- 返回:
- the created builder
-
create
Create a builder with the given template name.- 参数:
name- the name of the template to render- 返回:
- the created builder
-
create
Create a builder with the given template name.- 参数:
view- the name of the template to render- 返回:
- the created builder
-