[jboss-user] [JBoss Portal] - Re: image/png Content type not accepted

seansullivan do-not-reply at jboss.com
Wed Oct 25 02:41:01 EDT 2006


In the Portle 2.0 specification, the portlet class may implement the javax.portlet.ResourceServingPortlet interface

anonymous wrote : 
  | public interface ResourceServingPortlet
  | 
  | The ResourceServingPortlet interface allows serving resources through the portlet.
  | 
  | The portlet container must call this method for links created by the RenderResponse.createResouceURL() call. If the portlet creates resource URLs with RenderResponse.createResouceURL() it must implement this listener. 
  | 

The ResourceServingPortlet interface contains this method:

anonymous wrote : 
  | 
  | void serveResource(ResourceRequest request,
  |                    ResourceResponse response)
  |                    throws PortletException,
  |                           java.io.IOException
  | 
  |     Called by the portlet container to allow the portlet to generate the resouce 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 renderResource call.
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980617#3980617

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980617



More information about the jboss-user mailing list