Class FrankScriptContext
java.lang.Object
org.apache.commons.jexl3.MapContext
org.frankframework.extentions.script.FrankScriptContext
- All Implemented Interfaces:
org.apache.commons.jexl3.JexlContext
public class FrankScriptContext
extends org.apache.commons.jexl3.MapContext
A MapContext that can operate on streams and has Frank!Framework specific custom functionality.
Based on example in https://commons.apache.org/proper/commons-jexl/
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.jexl3.JexlContext
org.apache.commons.jexl3.JexlContext.AnnotationProcessor, org.apache.commons.jexl3.JexlContext.CancellationHandle, org.apache.commons.jexl3.JexlContext.ClassNameResolver, org.apache.commons.jexl3.JexlContext.ModuleProcessor, org.apache.commons.jexl3.JexlContext.NamespaceFunctor, org.apache.commons.jexl3.JexlContext.NamespaceResolver, org.apache.commons.jexl3.JexlContext.OptionsHandle, org.apache.commons.jexl3.JexlContext.PragmaProcessor, org.apache.commons.jexl3.JexlContext.ThreadLocal
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.jexl3.MapContext
clear, get, has, set
-
Constructor Details
-
FrankScriptContext
-
-
Method Details
-
warn
-
map
This allows using a JEXL lambda as a mapper.- Parameters:
stream
- the streammapper
- the lambda to use as mapper- Returns:
- the mapped stream
-
filter
This allows using a JEXL lambda as a filter.- Parameters:
stream
- the streamfilter
- the lambda to use as filter- Returns:
- the filtered stream
-