org.apache.synapse.mediators.bsf |
|
Java Source File Name | Type | Comment |
GroovyScriptMediatorTest.java | Class | |
ScriptMediator.java | Class | A Synapse mediator that calls a function in any scripting language supported by the BSF.
The ScriptMediator supports scripts specified in-line or those loaded through a registry
<script [key="entry-key"]
[function="script-function-name"] language="javascript|groovy|ruby">
(text | xml)?
</script>
The function is an optional attribute defining the name of the script function to call,
if not specified it defaults to a function named 'mediate'. |
ScriptMediatorFactory.java | Class | Creates an instance of a Script mediator for inline or external script mediation for BSF
scripting languages.
<script [key="entry-key"]
[function="script-function-name"] language="javascript|groovy|ruby">
(text | xml)?
<include key="entry-key" />
</script>
The boolean response from the inlined mediator is either the response from the evaluation of the
script statements or if that result is not a boolean then a response of true is assumed.
The MessageContext passed in to the script mediator has additional methods over the Synapse
MessageContext to enable working with the XML in a way natural to the scripting language. |
ScriptMediatorFactoryTest.java | Class | |
ScriptMediatorSerializationTest.java | Class | |
ScriptMediatorSerializer.java | Class | |
ScriptMediatorTest.java | Class | |
ScriptMessageContext.java | Class | |