Package org.apache.tapestry.web

Examples of org.apache.tapestry.web.WebContext


   
    public void testCreateAssetEncodeURL()
    {
        Location l = newLocation();
        URL url = newURL();
        WebContext context = (WebContext) newMock(WebContext.class);
        IRequestCycle rc = (IRequestCycle) newMock(IRequestCycle.class);

        trainGetResource(context, "/asset_fr.png", url);

        trainEncodeURL(rc, "/context/asset_fr.png", "/context/asset_fr.png?encoded");
View Full Code Here


    public void testCreateAbsoluteAsset()
    {
        Location l = newLocation();
        URL url = newURL();
        WebContext context = (WebContext) newMock(WebContext.class);

        trainGetResource(context, "/asset_fr.png", url);

        replayControls();
View Full Code Here

    }

    public void testCreateAbsoluteAssetMissing()
    {
        Location l = newLocation();
        WebContext context = (WebContext) newMock(WebContext.class);

        trainGetResource(context, "/asset_fr.png", null);
        trainGetResource(context, "/asset.png", null);

        replayControls();
View Full Code Here

    private ApplicationGlobals _applicationGlobals;

    public void initialize(PortletConfig portletConfig)
    {
        WebActivator activator = new PortletWebActivator(portletConfig);
        WebContext context = new PortletWebContext(portletConfig.getPortletContext());

        _applicationGlobals.storeActivator(activator);
        _applicationGlobals.storeWebContext(context);
    }
View Full Code Here

TOP

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

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.