Search in sources :

Example 1 with PortletRequestContextImpl

use of org.apereo.portal.portlet.container.PortletRequestContextImpl in project uPortal by Jasig.

the class LocalPortletRequestContextServiceImpl method getPortletRenderRequestContext.

/* (non-Javadoc)
     * @see org.apache.pluto.container.PortletRequestContextService#getPortletRenderRequestContext(org.apache.pluto.container.PortletContainer, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.pluto.container.PortletWindow)
     */
@Override
public PortletRequestContext getPortletRenderRequestContext(PortletContainer container, HttpServletRequest containerRequest, HttpServletResponse containerResponse, PortletWindow window) {
    final IPortletWindow portletWindow = this.portletWindowRegistry.convertPortletWindow(containerRequest, window);
    final IPortalRequestInfo portalRequestInfo = this.urlSyntaxProvider.getPortalRequestInfo(containerRequest);
    return new PortletRequestContextImpl(container, portletWindow, containerRequest, containerResponse, this.requestPropertiesManager, portalRequestInfo, portletCookieService, requestAttributeService);
}
Also used : IPortalRequestInfo(org.apereo.portal.url.IPortalRequestInfo) PortletRequestContextImpl(org.apereo.portal.portlet.container.PortletRequestContextImpl) IPortletWindow(org.apereo.portal.portlet.om.IPortletWindow)

Example 2 with PortletRequestContextImpl

use of org.apereo.portal.portlet.container.PortletRequestContextImpl in project uPortal by Jasig.

the class LocalPortletRequestContextServiceImpl method getPortletEventRequestContext.

/* (non-Javadoc)
     * @see org.apache.pluto.container.PortletRequestContextService#getPortletEventRequestContext(org.apache.pluto.container.PortletContainer, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.pluto.container.PortletWindow)
     */
@Override
public PortletRequestContext getPortletEventRequestContext(PortletContainer container, HttpServletRequest containerRequest, HttpServletResponse containerResponse, PortletWindow window) {
    final IPortletWindow portletWindow = this.portletWindowRegistry.convertPortletWindow(containerRequest, window);
    final IPortalRequestInfo portalRequestInfo = this.urlSyntaxProvider.getPortalRequestInfo(containerRequest);
    return new PortletRequestContextImpl(container, portletWindow, containerRequest, containerResponse, this.requestPropertiesManager, portalRequestInfo, portletCookieService, requestAttributeService);
}
Also used : IPortalRequestInfo(org.apereo.portal.url.IPortalRequestInfo) PortletRequestContextImpl(org.apereo.portal.portlet.container.PortletRequestContextImpl) IPortletWindow(org.apereo.portal.portlet.om.IPortletWindow)

Example 3 with PortletRequestContextImpl

use of org.apereo.portal.portlet.container.PortletRequestContextImpl in project uPortal by Jasig.

the class LocalPortletRequestContextServiceImpl method getPortletActionRequestContext.

/* (non-Javadoc)
     * @see org.apache.pluto.container.PortletRequestContextService#getPortletActionRequestContext(org.apache.pluto.container.PortletContainer, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.pluto.container.PortletWindow)
     */
@Override
public PortletRequestContext getPortletActionRequestContext(PortletContainer container, HttpServletRequest containerRequest, HttpServletResponse containerResponse, PortletWindow window) {
    final IPortletWindow portletWindow = this.portletWindowRegistry.convertPortletWindow(containerRequest, window);
    final IPortalRequestInfo portalRequestInfo = this.urlSyntaxProvider.getPortalRequestInfo(containerRequest);
    return new PortletRequestContextImpl(container, portletWindow, containerRequest, containerResponse, this.requestPropertiesManager, portalRequestInfo, portletCookieService, requestAttributeService);
}
Also used : IPortalRequestInfo(org.apereo.portal.url.IPortalRequestInfo) PortletRequestContextImpl(org.apereo.portal.portlet.container.PortletRequestContextImpl) IPortletWindow(org.apereo.portal.portlet.om.IPortletWindow)

Aggregations

PortletRequestContextImpl (org.apereo.portal.portlet.container.PortletRequestContextImpl)3 IPortletWindow (org.apereo.portal.portlet.om.IPortletWindow)3 IPortalRequestInfo (org.apereo.portal.url.IPortalRequestInfo)3