public interface ResourceServingPortlet
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 |
---|---|
void |
serveResource(ResourceRequest request,
ResourceResponse response)
Called by the portlet container to allow the portlet to generate
the resource content based on its current state.
|
void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException
renderResource
call.request
- the resource requestresponse
- the resource responsePortletException
- if the portlet has problems fulfilling the
rendering requestUnavailableException
- if the portlet is unavailable to perform render at this timePortletSecurityException
- if the portlet cannot fulfill this request due to security reasonsIOException
- if the streaming causes an I/O problemJava Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.