interface Cocoon

cocoon
   |
   +--cocoon.Cocoon

The Cocoon interface defines the main Cocoon liaison available to flow scripts.


Operation Summary
sendPage

Passes control to the Cocoon sitemap to generate the output page.

sendPageAndWait

Passes control to the Cocoon sitemap to generate the output page, interrupting the execution until another request comes in.


Attribute Summary
contxt The current Context instance.
log The current Log instance used for logging.
request The current Request instance associated with this script.

Operation Details

sendPage

Passes control to the Cocoon sitemap to generate the output page.

TODO: What happens when the control returns to a script which (for example) calls again sendPage(AndWait)???


Parameter


Exception



sendPageAndWait

Passes control to the Cocoon sitemap to generate the output page, interrupting the execution until another request comes in.

The flow script is suspended after the page is generated and the whole execution stack saved in a Continuation. This instance is returned to the caller once the next request triggers the continuation of the current execution stack.

TODO: Explain in better English what exactly goes on here.


Parameter


Return


Exception




Attribute Details

contxt

readonly attribute cocoon::Context contxt
The current Context instance. (suggested by Stefano Mazzocchi)

NOTE: "context" is a reserved word in IDL (at least it seems so). This name has been mangled accordingly to allow IDLDoc to produce the documentation.



log

readonly attribute cocoon::Log log
The current Log instance used for logging. (suggested by Jeremy Quinn).

request

readonly attribute cocoon::Request request
The current Request instance associated with this script. (suggested by Stefano Mazzocchi)