Package org.apache.tapestry.resource

Examples of org.apache.tapestry.resource.ContextResource


            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

        __CLOVER_300_0.S[6987]++;ServletContext context = servlet.getServletContext();
        __CLOVER_300_0.S[6988]++;String servletName = servlet.getServletName();
        __CLOVER_300_0.S[6989]++;String expectedName = servletName + ".application";

        __CLOVER_300_0.S[6990]++;Resource webInfLocation = new ContextResource(context, "/WEB-INF/");
        __CLOVER_300_0.S[6991]++;Resource webInfAppLocation = webInfLocation.getRelativeResource(servletName + "/");

        __CLOVER_300_0.S[6992]++;Resource result = check(webInfAppLocation, expectedName);
        __CLOVER_300_0.S[6993]++;if ((((result != null) && (++__CLOVER_300_0.CT[1220] != 0)) || (++__CLOVER_300_0.CF[1220] == 0))){
            __CLOVER_300_0.S[6994]++;return result;}
View Full Code Here

    private IApplicationSpecification constructStandinSpecification(HttpServlet servlet)
    {try { __CLOVER_300_0.M[1440]++;
        __CLOVER_300_0.S[7003]++;ApplicationSpecification result = new ApplicationSpecification();

        __CLOVER_300_0.S[7004]++;Resource virtualLocation = new ContextResource(servlet.getServletContext(), "/WEB-INF/");

        __CLOVER_300_0.S[7005]++;result.setSpecificationLocation(virtualLocation);

        __CLOVER_300_0.S[7006]++;result.setName(servlet.getServletName());
View Full Code Here

    private Resource _applicationRoot;

    public void initializeService()
    {try { __CLOVER_194_0.M[3070]++;
        __CLOVER_194_0.S[12664]++;_applicationRoot = new ContextResource(_context, "/");

        // Create the mechanisms for walking the component tree when it is
        // complete
        __CLOVER_194_0.S[12665]++;IComponentVisitor verifyRequiredParametersVisitor = new VerifyRequiredParametersVisitor();
        __CLOVER_194_0.S[12666]++;_verifyRequiredParametersWalker = new ComponentTreeWalker(new IComponentVisitor[]
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

     * @since 3.1
     */

    protected void addModuleIfExists(RegistryBuilder builder, ServletContext context, String path)
    {try { __CLOVER_3_0.M[2888]++;
        __CLOVER_3_0.S[11837]++;Resource r = new ContextResource(context, path);

        __CLOVER_3_0.S[11838]++;if ((((r.getResourceURL() != null) && (++__CLOVER_3_0.CT[2031] != 0)) || (++__CLOVER_3_0.CF[2031] == 0))){
            __CLOVER_3_0.S[11839]++;builder.processModule(_resolver, r);}
    } finally { }}
View Full Code Here

        __CLOVER_33_0.S[12047]++;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[12048]++;return new ContextResource(servletContext, servletPath);
    } finally { }}
View Full Code Here

    public void initializeService()
    {try { __CLOVER_338_0.M[1642]++;
        __CLOVER_338_0.S[7563]++;String servletPath = _request.getServletPath();

        __CLOVER_338_0.S[7564]++;_applicationRoot = new ContextResource(_context, servletPath);
    } finally { }}
View Full Code Here

    private Resource _applicationRoot;

    public void initializeService()
    {try { __CLOVER_194_0.M[955]++;
        __CLOVER_194_0.S[4493]++;_applicationRoot = new ContextResource(_context, "/");

        // Create the mechanisms for walking the component tree when it is
        // complete
        __CLOVER_194_0.S[4494]++;IComponentVisitor verifyRequiredParametersVisitor = new VerifyRequiredParametersVisitor();
        __CLOVER_194_0.S[4495]++;_verifyRequiredParametersWalker = new ComponentTreeWalker(new IComponentVisitor[]
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.