Examples of IEngine


Examples of org.apache.tapestry.IEngine

    public void testNoopEncoders()
    {
        WebRequest request = newRequest();
        IRequestCycle cycle = newCycle();
        ErrorLog log = newErrorLog();
        IEngine engine = newEngine();
        IEngineService service = newService("myservice");

        trainGetEngine(cycle, engine);
        trainGetOutputEncoding(engine, "utf-8");
View Full Code Here

Examples of org.apache.tapestry.IEngine

    {
        WebRequest request = newRequest();
        IRequestCycle cycle = newCycle();
        ErrorLog log = newErrorLog();
        IEngineService service = newService("page");
        IEngine engine = newEngine();

        trainGetEngine(cycle, engine);
        trainGetOutputEncoding(engine, "utf-8");

        replayControls();
View Full Code Here

Examples of org.apache.tapestry.IEngine

    {
        WebRequest request = newRequest();
        IRequestCycle cycle = newCycle();
        ErrorLog log = newErrorLog();
        IEngineService service = newService("external");
        IEngine engine = newEngine();

        trainGetEngine(cycle, engine);
        trainGetOutputEncoding(engine, "utf-8");

        replayControls();
View Full Code Here

Examples of org.apache.tapestry.IEngine

            return externalURL;

        // Otherwise, the service is responsible for dynamically retrieving the
        // resource.

        IEngine engine = cycle.getEngine();
       
        URL resourceURL = engine.getResourceResolver().getResource(path);
        String checksum = engine.getResourceChecksumSource().getChecksum(resourceURL);
       
        String[] parameters = new String[] { path, checksum };

        AssetService service = (AssetService) engine.getService(Tapestry.ASSET_SERVICE);
        ILink link = service.getLink(cycle, null, parameters);

        return link.getURL();
    }
View Full Code Here

Examples of org.apache.tapestry.IEngine

     * Gets the page from a pool, or otherwise loads the page. This operation is threadsafe.
     */

    public IPage getPage(IRequestCycle cycle, String pageName, IMonitor monitor)
    {
        IEngine engine = cycle.getEngine();
        Object key = buildKey(engine, pageName);
        IPage result = (IPage) _pool.get(key);

        if (result == null)
        {
View Full Code Here

Examples of org.apache.tapestry.IEngine

    private Set _beanNames;

    public BeanProvider(IComponent component)
    {
        this._component = component;
        IEngine engine = component.getPage().getEngine();
        _resolver = engine.getClassResolver();

        if (LOG.isDebugEnabled())
            LOG.debug("Created BeanProvider for " + component);

    }
View Full Code Here

Examples of org.apache.tapestry.IEngine

        Defense.notNull(cycle, "cycle");
        Defense.notNull(parameters, "parameters");

        squeezeServiceParameters(parameters);

        IEngine engine = cycle.getEngine();

        ServiceEncoding serviceEncoding = createServiceEncoding(parameters);

        // Give persistent property strategies a chance to store extra data
        // into the link.

        if (stateful)
            _persistenceStrategySource.addParametersForPersistentProperties(serviceEncoding, cycle);

        String fullServletPath = _contextPath + serviceEncoding.getServletPath();

        return new EngineServiceLink(cycle, fullServletPath, engine.getOutputEncoding(), _codec,
                _request, parameters, stateful);
    }
View Full Code Here

Examples of org.apache.tapestry.IEngine

            callback.performCallback(cycle);

        // I've found that failing to set a maximum age and a path means that
        // the browser (IE 5.0 anyway) quietly drops the cookie.

        IEngine engine = getEngine();
        Cookie cookie = new Cookie(COOKIE_NAME, email);
        cookie.setPath(engine.getServletPath());
        cookie.setMaxAge(ONE_WEEK);

        // Record the user's email address in a cookie

        cycle.getRequestContext().addCookie(cookie);

        engine.forgetPage(getPageName());
    }
View Full Code Here

Examples of org.apache.tapestry.IEngine

     * Gets the page from a pool, or otherwise loads the page. This operation is threadsafe.
     */

    public IPage getPage(IRequestCycle cycle, String pageName)
    {
        IEngine engine = cycle.getEngine();
        Object key = buildKey(engine, pageName);
        IPage result = (IPage) _pool.get(key);

        if (result == null)
        {
View Full Code Here

Examples of org.apache.tapestry.IEngine

    public ChartAsset(IRequestCycle cycle, IComponent chartProvider)
    {
        super(null, null);

        IEngine engine = cycle.getEngine();

        _chartService = engine.getService(ChartService.SERVICE_NAME);
        _chartProvider = chartProvider;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.