|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.container.invoker.ServletPortletInvoker
public class ServletPortletInvoker
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.
factory.invoker.servlet = org.apache.jetspeed.container.invoker.ServletPortletInvoker
factory.invoker.servlet.pool.size = 50
factory.invoker.servlet.mapping.name = /container
Field Summary | |
---|---|
protected boolean |
activated
|
protected javax.servlet.ServletConfig |
jetspeedConfig
|
protected javax.servlet.ServletContext |
jetspeedContext
|
private static org.apache.commons.logging.Log |
log
|
protected org.apache.pluto.om.portlet.PortletDefinition |
portletDefinition
|
protected org.apache.jetspeed.factory.PortletFactory |
portletFactory
|
protected org.apache.jetspeed.container.invoker.PortletRequestResponseUnwrapper |
requestResponseUnwrapper
requestResponseUnwrapper used to unwrap portlet request or portlet response to find the real servlet request or servlet response. |
protected String |
servletMappingName
|
Constructor Summary | |
---|---|
ServletPortletInvoker()
|
|
ServletPortletInvoker(org.apache.jetspeed.container.invoker.PortletRequestResponseUnwrapper requestResponseUnwrapper)
|
Method Summary | |
---|---|
void |
action(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
|
void |
activate(org.apache.jetspeed.factory.PortletFactory portletFactory,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
javax.servlet.ServletConfig servletConfig)
Activating an invoker makes it ready to invoke portlets. |
void |
activate(org.apache.jetspeed.factory.PortletFactory portletFactory,
org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
javax.servlet.ServletConfig servletConfig,
String servletMappingName)
Activating an invoker makes it ready to invoke portlets. |
protected void |
invoke(javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse,
Integer methodID)
Creates a servlet request dispatcher to dispatch to another web application to render the portlet. |
boolean |
isActivated()
Returns true if the state of this invoke is 'activated', and false if it is 'passivated'. |
void |
load(javax.portlet.PortletRequest request,
javax.portlet.RenderResponse response)
|
void |
passivate()
Passivates an invoker, freeing it back to the invoker pool. |
void |
render(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
protected org.apache.jetspeed.factory.PortletFactory portletFactory
protected javax.servlet.ServletContext jetspeedContext
protected javax.servlet.ServletConfig jetspeedConfig
protected org.apache.pluto.om.portlet.PortletDefinition portletDefinition
protected boolean activated
protected String servletMappingName
protected org.apache.jetspeed.container.invoker.PortletRequestResponseUnwrapper requestResponseUnwrapper
Constructor Detail |
---|
public ServletPortletInvoker()
public ServletPortletInvoker(org.apache.jetspeed.container.invoker.PortletRequestResponseUnwrapper requestResponseUnwrapper)
Method Detail |
---|
public void passivate()
JetspeedPortletInvoker
passivate
in interface JetspeedPortletInvoker
public boolean isActivated()
JetspeedPortletInvoker
isActivated
in interface JetspeedPortletInvoker
public void activate(org.apache.jetspeed.factory.PortletFactory portletFactory, org.apache.pluto.om.portlet.PortletDefinition portletDefinition, javax.servlet.ServletConfig servletConfig)
JetspeedPortletInvoker
activate
in interface JetspeedPortletInvoker
portletFactory
- The factory to get access to the portlet being invoked.portletDefinition
- The portlet's definition that is being invoked.servletConfig
- The servlet configuration of the portal.public void activate(org.apache.jetspeed.factory.PortletFactory portletFactory, org.apache.pluto.om.portlet.PortletDefinition portletDefinition, javax.servlet.ServletConfig servletConfig, String servletMappingName)
JetspeedPortletInvoker
activate
in interface JetspeedPortletInvoker
portletFactory
- The factory to get access to the portlet being invoked.portletDefinition
- The portlet's definition that is being invoked.servletConfig
- The servlet configuration of the portal.servletMappingName
- Implementation specific propertypublic void render(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
render
in interface org.apache.pluto.invoker.PortletInvoker
request
- response
-
javax.portlet.PortletException
IOException
public void action(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException
action
in interface org.apache.pluto.invoker.PortletInvoker
javax.portlet.PortletException
IOException
public void load(javax.portlet.PortletRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException
load
in interface org.apache.pluto.invoker.PortletInvoker
javax.portlet.PortletException
protected void invoke(javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse, Integer methodID) throws javax.portlet.PortletException, IOException
portletRequest
- portletResponse
- methodID
-
javax.portlet.PortletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |