| org.apache.cocoon.components.flow.CompilingInterpreter org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter
FOM_JavaScriptInterpreter | public class FOM_JavaScriptInterpreter extends CompilingInterpreter implements Initializable(Code) | | Interface with the JavaScript interpreter.
author: Ovidiu Predescu author: Marcus Crafter since: March 25, 2002 version: CVS $Id: FOM_JavaScriptInterpreter.java 494773 2007-01-10 09:24:02Z cziegeler $ |
Inner Class :public static class ThreadScope extends ScriptableObject | |
Method Summary | |
public void | callFunction(String funName, List params, Redirector redirector) Calls a JavaScript function, passing params as its
arguments. | Script | compileScript(Context cx, String fileName) | protected Script | compileScript(Context cx, Scriptable scope, Source src) | public void | configure(Configuration config) | String | findEncoding(PushbackInputStream is) | public void | forwardTo(Scriptable scope, FOM_Cocoon cocoon, String uri, Object bizData, FOM_WebContinuation fom_wk, Redirector redirector) | static synchronized Main | getDebugger() | protected ServiceManager | getServiceManager() Needed to get things working with JDK 1.3. | public void | handleContinuation(String id, List params, Redirector redirector) | public void | initialize() | void | process(Scriptable scope, FOM_Cocoon cocoon, String uri, Object bizData, OutputStream out) |
encodingRE | REProgram encodingRE(Code) | | |
callFunction | public void callFunction(String funName, List params, Redirector redirector) throws Exception(Code) | | Calls a JavaScript function, passing params as its
arguments. In addition to this, it makes available the parameters
through the cocoon.parameters JavaScript array
(indexed by the parameter names).
Parameters: funName - a String value Parameters: params - a List value Parameters: redirector - exception: Exception - if an error occurs |
compileScript | Script compileScript(Context cx, String fileName) throws Exception(Code) | | Compile filename as JavaScript code
Parameters: cx - Rhino context Parameters: fileName - resource uri compiled script |
compileScript | protected Script compileScript(Context cx, Scriptable scope, Source src) throws Exception(Code) | | |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | |
getDebugger | static synchronized Main getDebugger()(Code) | | |
getServiceManager | protected ServiceManager getServiceManager()(Code) | | Needed to get things working with JDK 1.3. Can be removed once we
don't support that platform any more.
|
Fields inherited from org.apache.cocoon.components.flow.CompilingInterpreter | protected Map compiledScripts(Code)(Java Doc) protected SourceResolver sourceresolver(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.components.flow.CompilingInterpreter | abstract protected Script compileScript(Context context, Scriptable scope, Source source) throws Exception(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
|
|
|