Package javax.portlet
Interface ResourceServingPortlet
-
- All Known Implementing Classes:
GenericPortlet
public interface ResourceServingPortlet
TheResourceServingPortlet
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 withRenderResponse.createResourceURL()
it must implement this lifecycle method.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
serveResource
void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, java.io.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 arenderResource
call.- Parameters:
request
- the resource requestresponse
- the resource response- Throws:
PortletException
- 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 reasonsjava.io.IOException
- if the streaming causes an I/O problem
-
-