You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2007/06/07 18:54:24 UTC

[DAISY] Created: Context Object

A new document has been created.

http://cocoon.zones.apache.org/daisy/documentation/1386.html

Document ID: 1386
Branch: main
Language: default
Name: Context Object
Document Type: Cocoon Document
Created: 6/7/07 4:54:17 PM
Creator (owner): Reinhard Pötz
State: publish

Parts
=====

Content
-------
Mime type: text/xml
Size: 1098 bytes
Content:
<html>
<body>

<p>The <tt>Context</tt> object represents the client context associated with the
current Cocoon request.</p>

<p>It provides the following functions and properties:</p>

<h3>getAttribute</h3>

<p><em>Function</em> <tt>[Object] getAttribute([String] name)</tt></p>

<p>Get the value of the context attribute with the specified <tt>name</tt>.</p>

<h3>setAttribute</h3>

<p><em>Function</em> <tt>setAttribute([String] name, [Object] value)</tt></p>

<p>Set the value of the context attribute with the specified <tt>name</tt> to
<tt>value</tt>.</p>

<h3>removeAttribute</h3>

<p><em>Function</em> <tt>removeAttribute([String] name)</tt></p>

<p>Remove the context attribute with the specified <tt>name</tt>.</p>

<h3>getInitParameter</h3>

<p><em>Function</em> <tt>getInitParameter([String] name)</tt></p>

<p>Get the value of the context initialization parameter with the specified
<tt>name</tt>.</p>

<h3>Properties</h3>

<p><tt>Context</tt> properties map to context attributes, i.e.
<tt>context.blah</tt> is equivalent to <tt>context.getAttribute("blah")</tt>.
</p>

</body>
</html>

Collections
===========
The document belongs to the following collections: cdocs-flowscript