Package org.apache.tapestry.web

Examples of org.apache.tapestry.web.WebContextResource


    private Resource _servletRoot;

    public void initializeService()
    {
        _servletRoot = new WebContextResource(_context, "/");
    }
View Full Code Here


    public Resource getContextRoot()
    {
        WebContext context = (WebContext) getProperty("context");

        return new WebContextResource(context, "/");
    }
View Full Code Here

    private Resource _servletRoot;

    public void initializeService()
    {
        _servletRoot = new WebContextResource(_context, "/");
    }
View Full Code Here

    public Resource getContextRoot()
    {
        WebContext context = (WebContext) getProperty("context");

        return new WebContextResource(context, "/");
    }
View Full Code Here

    private IEngineService _assetService;

    public void initializeService()
    {
        _servletRoot = new WebContextResource(_context, "/");
    }
View Full Code Here

        URL fakeURL = getClass().getResource("hivemodule.xml");

        expect(context.getResource("/WEB-INF/myportlet/myportlet.application")).andReturn(fakeURL);
       
        Resource expectedResource = new WebContextResource(context,
                "/WEB-INF/myportlet/myportlet.application");

        ISpecificationParser parser = newParser(expectedResource, specification);

        ApplicationGlobals globals = newGlobals();
View Full Code Here

        expect(context.getResource("/WEB-INF/myportlet/myportlet.application")).andReturn(null);

        expect(context.getResource("/WEB-INF/myportlet.application")).andReturn(fakeURL);

        Resource expectedResource = new WebContextResource(context,
                "/WEB-INF/myportlet.application");

        ISpecificationParser parser = newParser(expectedResource, specification);

        ApplicationGlobals globals = newGlobals();
View Full Code Here

        verify();

        IApplicationSpecification spec = globals.getSpecification();

        assertEquals("myportlet", spec.getName());
        assertEquals(new WebContextResource(context, "/WEB-INF/myportlet.application"), spec
                .getSpecificationLocation());
    }
View Full Code Here

    public Resource getContextRoot()
    {
        WebContext context = (WebContext) getProperty("context");

        return new WebContextResource(context, "/");
    }
View Full Code Here

            // paths must begin with "/" for context resolution
           
            if (path != null && !path.startsWith("/"))
                path = "/" + path;
           
            Resource base = new WebContextResource(_webContext, path);
            localized = _localizer.findLocalization(base, locale);
        }

        return localized;
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.web.WebContextResource

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.