接口 RenderingResponse

所有超级接口:
ServerResponse
所有已知实现类:
DefaultRenderingResponseBuilder.DefaultRenderingResponse, ModelAndViewRenderingResponseBuilder.ModelAndViewRenderingResponse

public interface RenderingResponse extends ServerResponse
Rendering-specific subtype of ServerResponse that exposes model and template data.
从以下版本开始:
4.0
作者:
Arjen Poutsma, Harry Yang
  • 方法详细资料

    • name

      String name()
      Return the name of the template to be rendered.
    • model

      Map<String,Object> 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

      static RenderingResponse.Builder create(String name)
      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