Package org.gatein.pc.controller.impl
Class AbstractControllerContext
java.lang.Object
org.gatein.pc.controller.impl.AbstractControllerContext
- All Implemented Interfaces:
ControllerContext
- Version:
- $Revision: 1.1 $
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.gatein.pc.api.spi.PortalContext.protected final javax.servlet.http.HttpServletRequest.protected final javax.servlet.http.HttpServletResponse. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractControllerContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponseprotected 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.PortletInvocationResponseorg.gatein.pc.api.invocation.response.PortletInvocationResponseprotected 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, waitMethods inherited from interface org.gatein.pc.controller.ControllerContext
createPortletInvocationContext, getEventControllerContext, getStateControllerContext
-
Field Details
-
PORTAL_CONTEXT
public static final org.gatein.pc.api.spi.PortalContext PORTAL_CONTEXT. -
req
protected final javax.servlet.http.HttpServletRequest req. -
resp
protected final javax.servlet.http.HttpServletResponse resp.
-
-
Constructor Details
-
AbstractControllerContext
public AbstractControllerContext(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException - Throws:
IOException
-
-
Method Details
-
getClientRequest
public javax.servlet.http.HttpServletRequest getClientRequest() -
getClientResponse
public javax.servlet.http.HttpServletResponse getClientResponse() -
getPortletInfo
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
-