Package org.apache.camel.language.wasm
Class WasmExpression
java.lang.Object
org.apache.camel.support.ExpressionSupport
org.apache.camel.support.ExpressionAdapter
org.apache.camel.language.wasm.WasmExpression
- All Implemented Interfaces:
org.apache.camel.Expression,org.apache.camel.Predicate,org.apache.camel.spi.ExpressionResultTypeAware
public class WasmExpression
extends org.apache.camel.support.ExpressionAdapter
implements org.apache.camel.spi.ExpressionResultTypeAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(org.apache.camel.Exchange exchange) Class<?> voidinit(org.apache.camel.CamelContext camelContext) booleanmatches(org.apache.camel.Exchange exchange) voidsetHeaderName(String headerName) Name of the header to use as input instead of the message body.voidSet the module (the distributable, loadable, and executable unit of code in WebAssembly) resource that provides the expression function.voidsetPropertyName(String propertyName) Name of the property to use as input instead of the message body.voidsetResultType(Class<?> resultType) voidsetResultTypeName(String resultTypeName) Methods inherited from class org.apache.camel.support.ExpressionAdapter
assertionFailureMessage, evaluateMethods inherited from class org.apache.camel.support.ExpressionSupport
assertMatchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Predicate
initPredicate
-
Constructor Details
-
WasmExpression
-
-
Method Details
-
init
public void init(org.apache.camel.CamelContext camelContext) - Specified by:
initin interfaceorg.apache.camel.Expression- Specified by:
initin interfaceorg.apache.camel.Predicate- Overrides:
initin classorg.apache.camel.support.ExpressionAdapter
-
getExpressionText
- Specified by:
getExpressionTextin interfaceorg.apache.camel.spi.ExpressionResultTypeAware
-
getResultType
- Specified by:
getResultTypein interfaceorg.apache.camel.spi.ExpressionResultTypeAware
-
setResultType
-
getResultTypeName
-
setResultTypeName
-
getHeaderName
-
setHeaderName
Name of the header to use as input instead of the message body. It has higher precedence than the propertyName if both are set. -
getPropertyName
-
setPropertyName
Name of the property to use as input instead of the message body. It has lower precedence than the headerName if both are set. -
getModule
-
setModule
Set the module (the distributable, loadable, and executable unit of code in WebAssembly) resource that provides the expression function. -
matches
public boolean matches(org.apache.camel.Exchange exchange) - Specified by:
matchesin interfaceorg.apache.camel.Predicate- Overrides:
matchesin classorg.apache.camel.support.ExpressionSupport
-
evaluate
- Overrides:
evaluatein classorg.apache.camel.support.ExpressionSupport
-