Class UIPortletActionListener.ServeResourceActionListener<S,C extends Serializable,I>

java.lang.Object
org.exoplatform.webui.event.EventListener<UIPortlet<S,C>>
org.exoplatform.portal.webui.application.UIPortletActionListener.ServeResourceActionListener<S,C,I>
Enclosing class:
UIPortletActionListener

public static class UIPortletActionListener.ServeResourceActionListener<S,C extends Serializable,I> extends EventListener<UIPortlet<S,C>>
The serveResource() method defined in the JSR 286 specs has several goals: - provide binary output like images to be displayed in the portlet (in the previous spec - JSR 168 - a servlet was needed) - provide text output that does not impact the entire portal rendering, it is for instance usefull when dealing with Javascript to return some JSON structures
The method delegates the call to the portlet container serverResource method after filling the ResourceInput object with the current request state.
This returns a ResourceOutput object that can content binary or text contentType
Finally the content is set in the portal response writer or outputstream depending on the type; the processRender() method of the portal is not called as we set the response as complete