ResourceServingPortlet interface allows
serving resources through the portlet.
The portlet container must call this method for links created by
the RenderResponse.createResourceURL() call.
If the portlet creates resource URLs with RenderResponse.createResourceURL()
it must implement this lifecycle method.
| Modifier and Type | Method and Description |
|---|---|
| public void | serveResource(ResourceRequest
the resource request request, ResourceResponse the resource response response)Called by the portlet container to allow the portlet to generate the resource content based on its current state. |
| serveResource | back to summary |
|---|---|
| public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException Called by the portlet container to allow the portlet to generate
the resource content based on its current state.
The portal / portlet container must not render any output in addition
to the content returned by the portlet. The portal / portlet container
should expect that the portlet may return binary content for a
| |