org.mule.components.script.jsr223
Class StreamingScriptComponent

java.lang.Object
  extended by org.mule.components.script.jsr223.Scriptable
      extended by org.mule.components.script.jsr223.AbstractScriptComponent
          extended by org.mule.components.script.jsr223.StreamingScriptComponent
All Implemented Interfaces:
StreamingService, Initialisable

public class StreamingScriptComponent
extends AbstractScriptComponent
implements StreamingService

A JSR 223 Script streaming component. Allows any JSR 223 compliant script engines such as JavaScript, Groovy or Rhino to be embedded as Mule components.


Field Summary
 
Fields inherited from class org.mule.components.script.jsr223.Scriptable
logger
 
Constructor Summary
StreamingScriptComponent()
           
 
Method Summary
 void call(InputStream in, OutputStream out, UMOEventContext eventContext)
          A service component that passes the inputStream and output stream for an event direcly to the service component.
protected  void populateBindings(javax.script.Bindings namespace, InputStream in, OutputStream out, UMOEventContext context)
           
 
Methods inherited from class org.mule.components.script.jsr223.AbstractScriptComponent
getBindings, initialise, populateBindings
 
Methods inherited from class org.mule.components.script.jsr223.Scriptable
compileScript, compileScript, compileScript, createScriptEngine, evaluteScript, getCompiledScript, getScriptEngine, getScriptEngineName, getScriptFile, getScriptText, runScript, runScript, setCompiledScript, setScriptEngine, setScriptEngineName, setScriptFile, setScriptText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingScriptComponent

public StreamingScriptComponent()
Method Detail

call

public void call(InputStream in,
                 OutputStream out,
                 UMOEventContext eventContext)
          throws Exception
Description copied from interface: StreamingService
A service component that passes the inputStream and output stream for an event direcly to the service component. Note that the InputStream will never be null, but the OutputStream can be null if the transport being used does not provide a response output stream and there is no outbound endpoint defined for this service.

Specified by:
call in interface StreamingService
Throws:
Exception

populateBindings

protected void populateBindings(javax.script.Bindings namespace,
                                InputStream in,
                                OutputStream out,
                                UMOEventContext context)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.