| java.lang.Object org.apache.jetspeed.container.invoker.ServletPortletInvoker
ServletPortletInvoker | public class ServletPortletInvoker implements JetspeedPortletInvoker(Code) | | ServletPortletInvoker invokes portlets in another web application, calling a
portlet's render or action method via a cross context request dispatcher.
In order for this class to work, a servlet must be special servlet must be
infused into the web (portlet) application. This servlet knows how to delegate
to portlets and package their response back into a servlet response.
The context name of the servlet should be configurable. The default context name is "/container"
ServletPortletInvokerFactory is the factory for creating portlet invokers that
use Jetspeed Container servlet.
Sample Factory Configuration
factory.invoker.servlet = org.apache.jetspeed.container.invoker.ServletPortletInvoker
factory.invoker.servlet.pool.size = 50
factory.invoker.servlet.mapping.name = /container
author: David Sean Taylor version: $Id: ServletPortletInvoker.java 598155 2007-11-26 07:41:26Z woonsan $ |
Method Summary | |
public void | action(ActionRequest request, ActionResponse response) | public void | activate(PortletFactory portletFactory, PortletDefinition portletDefinition, ServletConfig servletConfig) | public void | activate(PortletFactory portletFactory, PortletDefinition portletDefinition, ServletConfig servletConfig, String servletMappingName) | protected void | invoke(PortletRequest portletRequest, PortletResponse portletResponse, Integer methodID) Creates a servlet request dispatcher to dispatch to another web application to render the portlet. | public boolean | isActivated() | public void | load(PortletRequest request, RenderResponse response) | public void | passivate() | public void | render(RenderRequest request, RenderResponse response) |
activated | protected boolean activated(Code) | | |
portletDefinition | protected PortletDefinition portletDefinition(Code) | | |
requestResponseUnwrapper | protected PortletRequestResponseUnwrapper requestResponseUnwrapper(Code) | | requestResponseUnwrapper used to unwrap portlet request or portlet response
to find the real servlet request or servlet response.
|
ServletPortletInvoker | public ServletPortletInvoker()(Code) | | |
action | public void action(ActionRequest request, ActionResponse response) throws PortletException, IOException(Code) | | |
invoke | protected void invoke(PortletRequest portletRequest, PortletResponse portletResponse, Integer methodID) throws PortletException, IOException(Code) | | Creates a servlet request dispatcher to dispatch to another web application to render the portlet.
NOTE: this method requires that your container supports cross-context dispatching.
Cross-context dispatching is known to work on Tomcat, Catalina, Tomcat-5.
Parameters: portletRequest - Parameters: portletResponse - Parameters: methodID - throws: PortletException - throws: IOException - |
isActivated | public boolean isActivated()(Code) | | |
load | public void load(PortletRequest request, RenderResponse response) throws PortletException(Code) | | |
passivate | public void passivate()(Code) | | |
render | public void render(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code) | | Parameters: request - Parameters: response - throws: PortletException - |
|
|