Package org.apache.tapestry.resource

Examples of org.apache.tapestry.resource.ContextResource


    private Resource _webInfLocation;
    private Resource _webInfAppLocation;

    public void initializeService()
    {try { __CLOVER_242_0.M[1321]++;
        __CLOVER_242_0.S[6522]++;_applicationRootLocation = new ContextResource(_context, "/");

        __CLOVER_242_0.S[6523]++;_webInfLocation = _applicationRootLocation.getRelativeResource("WEB-INF/");

        __CLOVER_242_0.S[6524]++;_webInfAppLocation = _webInfLocation.getRelativeResource(_servletName + "/");
    } finally { }}
View Full Code Here


        __CLOVER_33_0.S[777]++;String servletPath = context.getRequest().getServletPath();

        // Could strip off the servlet name (i.e., "app" in "/app") but
        // there's no need.

        __CLOVER_33_0.S[778]++;return new ContextResource(servletContext, servletPath);
    } finally { }}
View Full Code Here

        __CLOVER_33_0.S[11059]++;String servletPath = context.getRequest().getServletPath();

        // Could strip off the servlet name (i.e., "app" in "/app") but
        // there's no need.

        __CLOVER_33_0.S[11060]++;return new ContextResource(servletContext, servletPath);
    } finally { }}
View Full Code Here

            RequestContext requestContext = cycle.getRequestContext();
            ApplicationServlet servlet = requestContext.getServlet();
            ServletContext context = servlet.getServletContext();
            IPropertySource propertySource = cycle.getEngine().getPropertySource();

            Resource webInfLocation = new ContextResource(context, "/WEB-INF/");

            Resource webInfAppLocation =
                webInfLocation.getRelativeResource(servlet.getServletName() + "/");

            readQuestions(
                easyQuestions,
                webInfAppLocation,
                propertySource.getPropertyValue("easyquestionsfile"));
View Full Code Here

            RequestContext requestContext = cycle.getRequestContext();
            ApplicationServlet servlet = requestContext.getServlet();
            ServletContext context = servlet.getServletContext();
            IPropertySource propertySource = cycle.getEngine().getPropertySource();

            Resource webInfLocation = new ContextResource(context, "/WEB-INF/");

            Resource webInfAppLocation =
                webInfLocation.getRelativeResource(servlet.getServletName() + "/");

            readQuestions(
                easyQuestions,
                webInfAppLocation,
                propertySource.getPropertyValue("easyquestionsfile"));
View Full Code Here

            RequestContext requestContext = cycle.getRequestContext();
            ApplicationServlet servlet = requestContext.getServlet();
            ServletContext context = servlet.getServletContext();
            IPropertySource propertySource = cycle.getEngine().getPropertySource();

            Resource webInfLocation = new ContextResource(context, "/WEB-INF/");

            Resource webInfAppLocation =
                webInfLocation.getRelativeResource(servlet.getServletName() + "/");

            readQuestions(
                easyQuestions,
                webInfAppLocation,
                propertySource.getPropertyValue("easyquestionsfile"));
View Full Code Here

TOP

Related Classes of org.apache.tapestry.resource.ContextResource

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.