Examples of ProfiledPageContext


Examples of org.apache.jetspeed.profiler.ProfiledPageContext

            {
                locators.put(ProfileLocator.PAGE_LOCATOR, profiler.getProfile(request, ProfileLocator.PAGE_LOCATOR));
            }
           
            // get profiled page context using the profiler and page manager
            ProfiledPageContext profiledPageContext = profiler.createProfiledPageContext(locators);
            pageManager.computeProfiledPageContext(profiledPageContext);
            if (profiledPageContext.getPage() == null)
            {
                throw new NodeNotFoundException("Unable to profile request: " + request.getPath());
            }
           
            // set request page and profile locator
            request.setPage(profiledPageContext.getPage());
            request.setProfileLocators(profiledPageContext.getLocators());

            // return profiled page context in request attribute
            HttpServletRequest httpRequest = request.getRequest();
            httpRequest.setAttribute(PROFILED_PAGE_CONTEXT_ATTR_KEY, profiledPageContext);
View Full Code Here

Examples of org.apache.jetspeed.profiler.ProfiledPageContext

     */
    public ProfiledPageContext createProfiledPageContext(Map locators)
    {
        try
        {
            ProfiledPageContext pageContext = (ProfiledPageContext) profiledPageContextClass.newInstance();
            pageContext.init(this, locators);
            return pageContext;
        }
        catch (Exception e)
        {
            log.error("Failed to create profiled page context for " + profiledPageContextClass);
View Full Code Here

Examples of org.apache.jetspeed.profiler.ProfiledPageContext

            {
                locators.put(ProfileLocator.PAGE_LOCATOR, profiler.getProfile(request, ProfileLocator.PAGE_LOCATOR));
            }
           
            // get profiled page context using the profiler and page manager
            ProfiledPageContext profiledPageContext = profiler.createProfiledPageContext(locators);
            pageManager.computeProfiledPageContext(profiledPageContext);
            if (profiledPageContext.getPage() == null)
            {
                throw new NodeNotFoundException("Unable to profile request: " + request.getPath());
            }
           
            // set request page and profile locator
            request.setPage(profiledPageContext.getPage());
            request.setProfileLocators(profiledPageContext.getLocators());

            // return profiled page context in request attribute
            HttpServletRequest httpRequest = request.getRequest();
            httpRequest.setAttribute(PROFILED_PAGE_CONTEXT_ATTR_KEY, profiledPageContext);
View Full Code Here

Examples of org.apache.jetspeed.profiler.ProfiledPageContext

     */
    public ProfiledPageContext createProfiledPageContext( Map locators )
    {
        try
        {
            ProfiledPageContext pageContext = (ProfiledPageContext) profiledPageContextClass.newInstance();
            pageContext.init(this, locators);
            return pageContext;
        }
        catch (Exception e)
        {
            log.error("Failed to create profiled page context for " + profiledPageContextClass);
View Full Code Here

Examples of org.apache.jetspeed.profiler.ProfiledPageContext

     */
    public ProfiledPageContext createProfiledPageContext( Map locators )
    {
        try
        {
            ProfiledPageContext pageContext = (ProfiledPageContext) profiledPageContextClass.newInstance();
            pageContext.init(this, locators);
            return pageContext;
        }
        catch (Exception e)
        {
            log.error("Failed to create profiled page context for " + profiledPageContextClass);
View Full Code Here

Examples of org.apache.jetspeed.profiler.ProfiledPageContext

            {
                locators.put(ProfileLocator.PAGE_LOCATOR, profiler.getProfile(request, ProfileLocator.PAGE_LOCATOR));
            }
           
            // get profiled page context using the profiler and page manager
            ProfiledPageContext profiledPageContext = profiler.createProfiledPageContext(locators);
            pageManager.computeProfiledPageContext(profiledPageContext);
            if (profiledPageContext.getPage() == null)
            {
                throw new NodeNotFoundException("Unable to profile request: " + request.getPath());
            }
           
            // set request page and profile locator
            request.setPage(new ContentPageImpl(profiledPageContext.getPage()));
            request.setProfileLocators(profiledPageContext.getLocators());

            // return profiled page context in request attribute
            HttpServletRequest httpRequest = request.getRequest();
            httpRequest.setAttribute(PROFILED_PAGE_CONTEXT_ATTR_KEY, profiledPageContext);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.