org.apache.tapestry.script
Interface ScriptSession

All Superinterfaces:
IScriptProcessor
All Known Implementing Classes:
ScriptSessionImpl

public interface ScriptSession
extends IScriptProcessor

Process object used when executing a script template. This ScriptSession provides support

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 java.lang.Object evaluate(java.lang.String expression)
          Evaluates an OGNL expression, where the root object for the expression is the symbols map.
 java.lang.Object evaluate(java.lang.String expression, java.lang.Class desiredType)
          Evaluates an expression and coerces the result to a particlar type.
 IRequestCycle getRequestCycle()
          Returns the current request cycle.
 org.apache.hivemind.Resource getScriptTemplateResource()
          Returns the resource for the script template.
 java.util.Map getSymbols()
          Returns the symbols (which may be created or updated during the execution of the script template).
 
Methods inherited from interface org.apache.tapestry.IScriptProcessor
addBodyScript, addExternalScript, addInitializationScript, getUniqueString
 

Method Detail

evaluate

public java.lang.Object evaluate(java.lang.String expression)
Evaluates an OGNL expression, where the root object for the expression is the symbols map.


getScriptTemplateResource

public org.apache.hivemind.Resource getScriptTemplateResource()
Returns the resource for the script template.


getSymbols

public java.util.Map getSymbols()
Returns the symbols (which may be created or updated during the execution of the script template).


getRequestCycle

public IRequestCycle getRequestCycle()
Returns the current request cycle.


evaluate

public java.lang.Object evaluate(java.lang.String expression,
                                 java.lang.Class desiredType)
Evaluates an expression and coerces the result to a particlar type.

Since:
4.0
See Also:
ValueConverter