Class PortletControllerContextImpl
java.lang.Object
org.gatein.pc.controller.impl.AbstractControllerContext
org.gatein.pc.test.controller.unit.PortletControllerContextImpl
- All Implemented Interfaces:
org.gatein.pc.controller.ControllerContext
public class PortletControllerContextImpl
extends org.gatein.pc.controller.impl.AbstractControllerContext
-
Field Summary
Fields inherited from class org.gatein.pc.controller.impl.AbstractControllerContext
PORTAL_CONTEXT, req, resp -
Constructor Summary
ConstructorsConstructorDescriptionPortletControllerContextImpl(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.ServletContext servletContext) -
Method Summary
Modifier and TypeMethodDescriptionorg.gatein.pc.api.spi.PortletInvocationContextcreatePortletInvocationContext(String windowId, org.gatein.pc.controller.state.PageNavigationalState pageNavigationalState) org.gatein.pc.controller.event.EventControllerContextorg.gatein.common.io.Serialization<org.gatein.pc.controller.state.PageNavigationalState> protected org.gatein.pc.api.PortletgetPortlet(String windowId) org.gatein.pc.api.PortletInvokerCollection<org.gatein.pc.api.Portlet> org.gatein.pc.controller.state.StateControllerContextorg.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(org.gatein.pc.api.invocation.PortletInvocation invocation) Methods inherited from class org.gatein.pc.controller.impl.AbstractControllerContext
getClientRequest, getClientResponse, getPortletInfo, invoke, invoke, invoke, invoke
-
Constructor Details
-
PortletControllerContextImpl
public PortletControllerContextImpl(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.ServletContext servletContext) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
-
Method Details
-
getPortletInvoker
public org.gatein.pc.api.PortletInvoker getPortletInvoker() -
getPortlet
protected org.gatein.pc.api.Portlet getPortlet(String windowId) throws org.gatein.pc.api.PortletInvokerException - Specified by:
getPortletin classorg.gatein.pc.controller.impl.AbstractControllerContext- Throws:
org.gatein.pc.api.PortletInvokerException
-
getStateControllerContext
public org.gatein.pc.controller.state.StateControllerContext getStateControllerContext() -
invoke
public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(org.gatein.pc.api.invocation.PortletInvocation invocation) throws org.gatein.pc.api.PortletInvokerException - Specified by:
invokein classorg.gatein.pc.controller.impl.AbstractControllerContext- Throws:
org.gatein.pc.api.PortletInvokerException
-
getEventControllerContext
public org.gatein.pc.controller.event.EventControllerContext getEventControllerContext() -
getPortlets
public Collection<org.gatein.pc.api.Portlet> getPortlets() throws org.gatein.pc.api.PortletInvokerException- Throws:
org.gatein.pc.api.PortletInvokerException
-