Package org.apache.jetspeed.profiler

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


     */
    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

            {
                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

     */
    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

     */
    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

            {
                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

Related Classes of org.apache.jetspeed.profiler.ProfiledPageContext

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.