Interface Renderable

  • All Known Implementing Classes:
    Redirect, View

    public interface Renderable
    If you return one of these from a resource method, RESTEasy-HTML will render it. This interface allows for exotic view rendering types.
    Jeff Schnitzer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void render​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Called to do the actual work of rendering a view.
    • Method Detail

      • render

        void render​(jakarta.servlet.http.HttpServletRequest request,
                    jakarta.servlet.http.HttpServletResponse response)
             throws IOException,
        Called to do the actual work of rendering a view. Note that while ServletException can be thrown, WebApplicationException is preferred.
        request - http request
        response - http response
        IOException - if I/O error occurred
        jakarta.servlet.ServletException - if servlet error occurred - if application error occurred