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 fullfill this request because of security reasonsIOException
- if the streaming causes an I/O problemCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.