Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » flow » javascript » fom » [javadoc | source]
org.apache.cocoon.components.flow.javascript.fom
public class: FOM_JavaScriptInterpreter [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.components.flow.AbstractInterpreter
         org.apache.cocoon.components.flow.CompilingInterpreter
            org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter

All Implemented Interfaces:
    org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.thread.SingleThreaded, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.context.Contextualizable, Interpreter

Interface with the JavaScript interpreter.
Nested Class Summary:
class  FOM_JavaScriptInterpreter.MyClassRepository   
public static class  FOM_JavaScriptInterpreter.ThreadScope   
Field Summary
 REProgram encodingRE     
Fields inherited from org.apache.cocoon.components.flow.CompilingInterpreter:
sourceresolver,  compiledScripts
Fields inherited from org.apache.cocoon.components.flow.AbstractInterpreter:
avalonContext,  needResolve,  context,  manager,  continuationsMgr,  reloadScripts,  checkTime
Method from org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter Summary:
callFunction,   compileScript,   compileScript,   configure,   findEncoding,   forwardTo,   getDebugger,   getServiceManager,   handleContinuation,   initialize,   process
Methods from org.apache.cocoon.components.flow.CompilingInterpreter:
compileScript,   dispose,   service
Methods from org.apache.cocoon.components.flow.AbstractInterpreter:
configure,   contextualize,   dispose,   forwardTo,   getInterpreterID,   process,   register,   service,   setInterpreterID
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter Detail:
 public  void callFunction(String funName,
    List params,
    Redirector redirector) throws Exception 
    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).
 Script compileScript(Context cx,
    String fileName) throws Exception 
    Compile filename as JavaScript code
 protected Script compileScript(Context cx,
    Scriptable scope,
    Source src) throws Exception 
 public  void configure(Configuration config) throws ConfigurationException 
 String findEncoding(PushbackInputStream is) throws IOException 
    Find the encoding of the stream, or null if not specified
 public  void forwardTo(Scriptable scope,
    FOM_Cocoon cocoon,
    String uri,
    Object bizData,
    FOM_WebContinuation fom_wk,
    Redirector redirector) throws Exception 
 static synchronized Main getDebugger() 
 protected ServiceManager getServiceManager() 
    Needed to get things working with JDK 1.3. Can be removed once we don't support that platform any more.
 public  void handleContinuation(String id,
    List params,
    Redirector redirector) throws Exception 
 public  void initialize() throws Exception 
  void process(Scriptable scope,
    FOM_Cocoon cocoon,
    String uri,
    Object bizData,
    OutputStream out) throws Exception