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

    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 Details

    • render

      void render(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException, jakarta.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
      jakarta.servlet.ServletException - if servlet error occurred
      jakarta.ws.rs.WebApplicationException - if application error occurred