public interface ResourceServingPortlet
ResourceServingPortletinterface allows serving resources through the portlet.
The portlet container must call this method for links created by
If the portlet creates resource URLs with
it must implement this lifecycle method.
|Modifier and Type||Method and Description|
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
request- the resource request
response- the resource response
PortletException- if the portlet has problems fulfilling the rendering request
UnavailableException- if the portlet is unavailable to perform render at this time
PortletSecurityException- if the portlet cannot fulfill this request due to security reasons
IOException- if the streaming causes an I/O problem
Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.