Interface Renderable
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 TypeMethodDescriptionvoid
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 requestresponse
- http response- Throws:
IOException
- if I/O error occurredjakarta.servlet.ServletException
- if servlet error occurredjakarta.ws.rs.WebApplicationException
- if application error occurred
-