org.springframework.web.reactive.function.server

Interface RenderingResponse

  • All Superinterfaces:
    ServerResponse


    public interface RenderingResponse
    extends ServerResponse
    Rendering-specific subtype of ServerResponse that exposes model and template data.
    Since:
    5.0
    Author:
    Arjen Poutsma, Juergen Hoeller
    • Method Detail

      • name

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

        java.util.Map<java.lang.String,java.lang.Object> model()
        Return the unmodifiable model map.
      • from

        static RenderingResponse.Builder from(RenderingResponse other)
        Create a builder with the template name, status code, headers and model of the given response.
        Parameters:
        other - the response to copy the values from
        Returns:
        the created builder
      • create

        static RenderingResponse.Builder create(java.lang.String name)
        Create a builder with the given template name.
        Parameters:
        name - the name of the template to render
        Returns:
        the created builder