Apache » Cocoon »

  Cocoon FlowScript
      1.0
   homepage

Cocoon FlowScript 1.0

Context Object

The Context object represents the client context associated with the current Cocoon request.

It provides the following functions and properties:

getAttribute

Function [Object] getAttribute([String] name)

Get the value of the context attribute with the specified name.

setAttribute

Function setAttribute([String] name, [Object] value)

Set the value of the context attribute with the specified name to value.

removeAttribute

Function removeAttribute([String] name)

Remove the context attribute with the specified name.

getInitParameter

Function getInitParameter([String] name)

Get the value of the context initialization parameter with the specified name.

Properties

Context properties map to context attributes, i.e. context.blah is equivalent to context.getAttribute("blah").

Errors and Improvements? If you see any errors or potential improvements in this document please help us: View, Edit or comment on the latest development version (registration required).