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
 Object evaluate(String expression)
          Evaluates an OGNL expression, where the root object for the expression is the symbols map.
 Object evaluate(String expression, 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.
 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, addBodyScript, addExternalScript, addExternalScript, addInitializationScript, addInitializationScript, addScriptAfterInitialization, getUniqueString, isBodyScriptAllowed, isExternalScriptAllowed, isInitializationScriptAllowed
 

Method Detail

evaluate

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


getScriptTemplateResource

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


getSymbols

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


getRequestCycle

IRequestCycle getRequestCycle()
Returns the current request cycle.


evaluate

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

Since:
4.0
See Also:
ValueConverter


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.