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").