Class AbstractControllerContext

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.gatein.pc.api.spi.PortalContext PORTAL_CONTEXT
      .
      protected javax.servlet.http.HttpServletRequest req
      .
      protected javax.servlet.http.HttpServletResponse resp
      .
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractControllerContext​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
    • Field Detail

      • 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 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: ControllerContext
        Returns the portet info for a specified window.
        Specified by:
        getPortletInfo in interface ControllerContext
        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:
        invoke in interface ControllerContext
        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:
        invoke in interface ControllerContext
        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:
        invoke in interface ControllerContext
        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:
        invoke in interface ControllerContext
        Throws:
        org.gatein.pc.api.PortletInvokerException