Package org.gatein.pc.controller.impl
Class AbstractControllerContext
- java.lang.Object
-
- org.gatein.pc.controller.impl.AbstractControllerContext
-
- All Implemented Interfaces:
ControllerContext
public abstract class AbstractControllerContext extends Object implements ControllerContext
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description static org.gatein.pc.api.spi.PortalContextPORTAL_CONTEXT.protected javax.servlet.http.HttpServletRequestreq.protected javax.servlet.http.HttpServletResponseresp.
-
Constructor Summary
Constructors Constructor Description AbstractControllerContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.servlet.http.HttpServletRequestgetClientRequest()javax.servlet.http.HttpServletResponsegetClientResponse()protected abstract org.gatein.pc.api.PortletgetPortlet(String windowId)org.gatein.pc.api.info.PortletInfogetPortletInfo(String windowId)Returns the portet info for a specified window.org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.EventInvocation eventInvocation)org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.RenderInvocation renderInvocation)org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, org.gatein.pc.api.invocation.ActionInvocation actionInvocation)org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(String windowId, org.gatein.pc.api.invocation.ResourceInvocation resourceInvocation)protected abstract org.gatein.pc.api.invocation.response.PortletInvocationResponseinvoke(org.gatein.pc.api.invocation.PortletInvocation invocation)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gatein.pc.controller.ControllerContext
createPortletInvocationContext, getEventControllerContext, getStateControllerContext
-
-
-
-
Constructor Detail
-
AbstractControllerContext
public AbstractControllerContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException- Throws:
IOException
-
-
Method Detail
-
getClientRequest
public javax.servlet.http.HttpServletRequest getClientRequest()
-
getClientResponse
public javax.servlet.http.HttpServletResponse getClientResponse()
-
getPortletInfo
public org.gatein.pc.api.info.PortletInfo getPortletInfo(String windowId)
Description copied from interface:ControllerContextReturns the portet info for a specified window.- Specified by:
getPortletInfoin interfaceControllerContext- Parameters:
windowId- the window id- Returns:
- the portlet info or null if none can be found
-
getPortlet
protected abstract org.gatein.pc.api.Portlet getPortlet(String windowId) throws org.gatein.pc.api.PortletInvokerException
- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
protected abstract org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(org.gatein.pc.api.invocation.PortletInvocation invocation) throws org.gatein.pc.api.PortletInvokerException- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, org.gatein.pc.api.invocation.ActionInvocation actionInvocation) throws org.gatein.pc.api.PortletInvokerException
- Specified by:
invokein interfaceControllerContext- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.EventInvocation eventInvocation) throws org.gatein.pc.api.PortletInvokerException
- Specified by:
invokein interfaceControllerContext- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, List<javax.servlet.http.Cookie> requestCookies, org.gatein.pc.api.invocation.RenderInvocation renderInvocation) throws org.gatein.pc.api.PortletInvokerException
- Specified by:
invokein interfaceControllerContext- Throws:
org.gatein.pc.api.PortletInvokerException
-
invoke
public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(String windowId, org.gatein.pc.api.invocation.ResourceInvocation resourceInvocation) throws org.gatein.pc.api.PortletInvokerException
- Specified by:
invokein interfaceControllerContext- Throws:
org.gatein.pc.api.PortletInvokerException
-
-