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.
    Author:
    Jeff Schnitzer
    • Method Summary

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

      • render

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