Package org.apache.jetspeed.aggregator

Examples of org.apache.jetspeed.aggregator.ContentDispatcher


    protected RenderingJob buildRenderingJob( ContentFragment fragment, HttpServletRequest request,
            HttpServletResponse response, RequestContext requestContext ) throws FailedToRetrievePortletWindow,
            FailedToRenderFragmentException
    {
        ContentDispatcher dispatcher = null;
        RenderingJob rJob;

        PortletWindow portletWindow = getPortletWindow(fragment);
        ContentDispatcherCtrl dispatcherCtrl = getDispatcherCtrl(requestContext, true);
        dispatcher = getDispatcher(requestContext, true);       
        request = requestContext.getRequestForWindow(portletWindow);
        response = dispatcherCtrl.getResponseForWindow(portletWindow, requestContext);
      
       
        request.setAttribute(PortalReservedParameters.PAGE_ATTRIBUTE, requestContext.getPage());
        request.setAttribute(PortalReservedParameters.FRAGMENT_ATTRIBUTE, fragment);
        request.setAttribute(PortalReservedParameters.CONTENT_DISPATCHER_ATTRIBUTE, dispatcher);
        request.setAttribute(PortalReservedParameters.REQUEST_CONTEXT_ATTRIBUTE, requestContext);       
        request.setAttribute(PortalReservedParameters.FRAGMENT_ATTRIBUTE, fragment);
       
        PortletContent portletContent = dispatcher.getPortletContent(fragment);
        fragment.setPortletContent(portletContent);
        return new RenderingJob(container, portletContent, fragment, request, response, requestContext, portletWindow);

    }
View Full Code Here


    protected ContentDispatcher getDispatcher(RenderRequest request)
    {
        // Very ugly and Pluto dependant but I don't see anything better right now
        ServletRequest innerRequest = ((HttpServletRequestWrapper) request).getRequest();
        ContentDispatcher dispatcher = (ContentDispatcher) innerRequest.getAttribute("org.apache.jetspeed.ContentDispatcher");

        return dispatcher;
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.aggregator.ContentDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.