Package org.apache.cocoon.components.flow

Examples of org.apache.cocoon.components.flow.ContinuationsManager


                                                   FOM_WebContinuation parent,
                                                   int timeToLive)
        throws Exception {
        if (k == null) return null;
        WebContinuation wk;
        ContinuationsManager contMgr;
        contMgr = (ContinuationsManager)
            componentManager.lookup(ContinuationsManager.ROLE);
        wk = contMgr.createWebContinuation(unwrap(k),
                                           (WebContinuation)(parent == null ? null : parent.getWebContinuation()),
                                           timeToLive,
                                           null);
        FOM_WebContinuation result = new FOM_WebContinuation(wk);
        result.setParentScope(getParentScope());
View Full Code Here


    throws Exception
  {
    JSCocoon cocoon = (JSCocoon)args[0];
    ComponentManager manager = cocoon.getComponentManager();

    ContinuationsManager contMgr
      = (ContinuationsManager)manager.lookup(ContinuationsManager.ROLE);

    Object kont = args[1];
    JSWebContinuation pjswk = (JSWebContinuation)args[2];
    WebContinuation pwk = (pjswk == null ? null : pjswk.wk);

    int ttl;

    if (args[3] == Undefined.instance)
      ttl = 0;
    else {
      Number timeToLive = (Number)args[3];
      ttl = (timeToLive == null ? 0 : timeToLive.intValue());
    }

    JSWebContinuation jswk = new JSWebContinuation();
    WebContinuation wk
      = contMgr.createWebContinuation(kont, pwk, ttl, null);
    wk.setUserObject(jswk);

    jswk.cocoon = cocoon;
    jswk.wk = wk;
    jswk.continuationsMgr = contMgr;
View Full Code Here

        }
        return arr;
    }
   
    public void jsFunction_invalidate() throws Exception {
        ContinuationsManager contMgr = null;
        FOM_Cocoon cocoon =
            (FOM_Cocoon)getProperty(getTopLevelScope(this),
                                    "cocoon");
        ComponentManager componentManager =
            cocoon.getComponentManager();
        contMgr = (ContinuationsManager)
            componentManager.lookup(ContinuationsManager.ROLE);
        contMgr.invalidateWebContinuation(wk);
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.flow.ContinuationsManager

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.