Interface CamelExpressionClause<T extends MessageProcessor.Builder<?,?>,F,E>
public interface CamelExpressionClause<T extends MessageProcessor.Builder<?,?>,F,E>
-
Method Summary
Modifier and TypeMethodDescriptionbody()An expression of an inbound message bodyAn expression of an inbound message body converted to the expected typeSpecify the constant expression value.Specify the constant expression value.Specify the constant expression value.Evaluates a compiled simple expressionEvaluates a compiled simple expressiondatasonnet(String text) Evaluates a Datasonnet expressionexchange()An expression of the exchangeAn expression of the exchange patternAn expression of the exchange propertiesexchangeProperty(String name) An expression of an exchange property of the given nameexpression(E expression) Evaluates a Groovy expressionAn expression of an inbound message header of the given nameheaders()An expression of the inbound headersEvaluates an HL7 Terser expressionAn expression of an inbound messageEvaluates an Java expressionEvaluates an Java expressionDeprecated.Deprecated.Evaluates JQ expressionEvaluates JQ expressionEvaluates a JavaScript expression.Evaluates an JavaScript expressionEvaluates a Json Path expressionEvaluates a Json Path expressionEvaluates a Json Path expressionEvaluates a Json Path expressionEvaluates a Json Path expressionEvaluates a Json Path expressionjsonpathUnpack(String text, Class<?> resultType) Evaluates a Json Path expression with unpacking a single-element array into an object enabled.jsonpathWriteAsString(String text) Evaluates a Json Path expression with writeAsString enabled.jsonpathWriteAsString(String text, boolean suppressExceptions) Evaluates a Json Path expression with writeAsString enabled.jsonpathWriteAsString(String text, boolean suppressExceptions, boolean allowSimple) Evaluates a Json Path expression with writeAsString enabled.jsonpathWriteAsString(String text, boolean suppressExceptions, Class<?> resultType) Evaluates a Json Path expression with writeAsString enabled.jsonpathWriteAsString(String text, Class<?> resultType) Evaluates a Json Path expression with writeAsString enabled.Evaluates a given language name with the expression textEvaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Evaluates a MVEL expressionEvaluates an OGNL expressionEvaluates a Python expression.Evaluates Python expressionEvaluates an expression by looking up existing expressions from the registryEvaluates a Simple expressionEvaluates a Simple expressionEvaluates an SpEL expressionEvaluates a token expression on the message bodyEvaluates a token expression on the message bodyEvaluates a token expression on the message bodyEvaluates a token expression on the message bodyEvaluates a token expression on the message bodyEvaluates a token expression on the message bodyEvaluates a token expression on the message bodytokenizePair(String startToken, String endToken, boolean includeTokens) Evaluates a token pair expression on the message bodytokenizeXMLPair(String tagName, String inheritNamespaceTagName, int group) Evaluates a token pair expression on the message body with XML contenttokenizeXMLPair(String tagName, String inheritNamespaceTagName, String group) Evaluates a token pair expression on the message body with XML contentAn expression of a variable with the given nameEvaluates Wasm expressionEvaluates Wasm expressionEvaluates an XPath expressionEvaluates an XPath expression with the specified result typeEvaluates an XPath expression with the specified result type and set of namespace prefixes and URIsEvaluates an XPath expression with the specified result type and set of namespace prefixes and URIsEvaluates an XPath expression with the specified set of namespace prefixes and URIsEvaluates an XPath expression with the specified set of namespace prefixes and URIsEvaluates an XQuery expressionEvaluates an XQuery expression with the specified result typeEvaluates an XQuery expression with the specified result type and set of namespace prefixes and URIsEvaluates an XQuery expression with the specified result type and set of namespace prefixes and URIsEvaluates an XQuery expression with the specified set of namespace prefixes and URIsEvaluates an XQuery expression with the specified set of namespace prefixes and URIsEvaluates an XML token expression on the message body with XML content
-
Method Details
-
getExpressionType
F getExpressionType() -
getExpressionValue
E getExpressionValue() -
expression
-
language
-
constant
Specify the constant expression value. Important: this is a fixed constant value that is only set once during starting up the route, do not use this if you want dynamic values during routing. -
constant
Specify the constant expression value. Important: this is a fixed constant value that is only set once during starting up the route, do not use this if you want dynamic values during routing. -
constant
Specify the constant expression value. Important: this is a fixed constant value that is only set once during starting up the route, do not use this if you want dynamic values during routing. -
exchange
T exchange()An expression of the exchange -
inMessage
T inMessage()An expression of an inbound message -
body
T body()An expression of an inbound message body -
body
An expression of an inbound message body converted to the expected type -
header
An expression of an inbound message header of the given name -
headers
T headers()An expression of the inbound headers -
exchangePattern
T exchangePattern()An expression of the exchange pattern -
exchangeProperty
An expression of an exchange property of the given name -
exchangeProperties
T exchangeProperties()An expression of the exchange properties -
variable
An expression of a variable with the given name -
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.- Parameters:
ref- the name (bean id) of the bean to lookup from the registry- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.- Parameters:
instance- the existing instance of the bean- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Will lookup in registry and if there is a single instance of the same type, then the existing bean is used, otherwise a new bean is created (requires a default no-arg constructor).
- Parameters:
beanType- the Class of the bean which we want to invoke- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.- Parameters:
ref- the name (bean id) of the bean to lookup from the registrymethod- the name of the method to invoke on the bean- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.- Parameters:
ref- the name (bean id) of the bean to lookup from the registryscope- the scope of the bean- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.- Parameters:
ref- the name (bean id) of the bean to lookup from the registrymethod- the name of the method to invoke on the beanscope- the scope of the bean- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.- Parameters:
instance- the existing instance of the beanmethod- the name of the method to invoke on the bean- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Will lookup in registry and if there is a single instance of the same type, then the existing bean is used, otherwise a new bean is created (requires a default no-arg constructor).
- Parameters:
beanType- the Class of the bean which we want to invokemethod- the name of the method to invoke on the bean- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Will lookup in registry and if there is a single instance of the same type, then the existing bean is used, otherwise a new bean is created (requires a default no-arg constructor).
- Parameters:
beanType- the Class of the bean which we want to invokescope- the scope of the bean- Returns:
- the builder to continue processing the DSL
-
method
Evaluates an expression using the <a href="http://camel.apache.org/bean-language.html>bean language which basically means the bean is invoked to determine the expression value.Will lookup in registry and if there is a single instance of the same type, then the existing bean is used, otherwise a new bean is created (requires a default no-arg constructor).
- Parameters:
beanType- the Class of the bean which we want to invokemethod- the name of the method to invoke on the beanscope- the scope of the bean- Returns:
- the builder to continue processing the DSL
-
groovy
Evaluates a Groovy expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
js
Evaluates a JavaScript expression.- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
js
Evaluates an JavaScript expression- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
joor
Deprecated.Evaluates an JOOR expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
joor
Deprecated.Evaluates an JOOR expression- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
java
Evaluates an Java expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
java
Evaluates an Java expression- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
jq
Evaluates JQ expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
jq
Evaluates JQ expression- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
datasonnet
Evaluates a Datasonnet expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
jsonpath
Evaluates a Json Path expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
jsonpath
Evaluates a Json Path expression- Parameters:
text- the expression to be evaluatedsuppressExceptions- whether to suppress exceptions such as PathNotFoundException- Returns:
- the builder to continue processing the DSL
-
jsonpath
Evaluates a Json Path expression- Parameters:
text- the expression to be evaluatedsuppressExceptions- whether to suppress exceptions such as PathNotFoundExceptionallowSimple- whether to allow in inlined simple exceptions in the json path expression- Returns:
- the builder to continue processing the DSL
-
jsonpath
Evaluates a Json Path expression- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
jsonpath
Evaluates a Json Path expression- Parameters:
text- the expression to be evaluatedsuppressExceptions- whether to suppress exceptions such as PathNotFoundExceptionresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
jsonpath
Evaluates a Json Path expression- Parameters:
text- the expression to be evaluatedsuppressExceptions- whether to suppress exceptions such as PathNotFoundExceptionallowSimple- whether to allow in inlined simple exceptions in the json path expressionresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
jsonpathWriteAsString
Evaluates a Json Path expression with writeAsString enabled.- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
jsonpathWriteAsString
Evaluates a Json Path expression with writeAsString enabled.- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
jsonpathWriteAsString
Evaluates a Json Path expression with writeAsString enabled.- Parameters:
text- the expression to be evaluatedsuppressExceptions- whether to suppress exceptions such as PathNotFoundException- Returns:
- the builder to continue processing the DSL
-
jsonpathWriteAsString
Evaluates a Json Path expression with writeAsString enabled.- Parameters:
text- the expression to be evaluatedsuppressExceptions- whether to suppress exceptions such as PathNotFoundExceptionresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
jsonpathWriteAsString
Evaluates a Json Path expression with writeAsString enabled.- Parameters:
text- the expression to be evaluatedsuppressExceptions- whether to suppress exceptions such as PathNotFoundExceptionallowSimple- whether to allow in inlined simple exceptions in the json path expression- Returns:
- the builder to continue processing the DSL
-
jsonpathUnpack
Evaluates a Json Path expression with unpacking a single-element array into an object enabled.- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
ognl
Evaluates an OGNL expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
python
Evaluates a Python expression.- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
python
Evaluates Python expression- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
mvel
Evaluates a MVEL expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
ref
Evaluates an expression by looking up existing expressions from the registry- Parameters:
ref- refers to the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
spel
Evaluates an SpEL expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
csimple
Evaluates a compiled simple expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
csimple
Evaluates a compiled simple expression- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
simple
Evaluates a Simple expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
simple
Evaluates a Simple expression- Parameters:
text- the expression to be evaluatedresultType- the result type- Returns:
- the builder to continue processing the DSL
-
hl7terser
Evaluates an HL7 Terser expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the message body- Parameters:
token- the token- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the message body- Parameters:
token- the tokengroup- to group by the given number- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the message body- Parameters:
token- the tokengroup- to group by the given numberskipFirst- whether to skip the very first element- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the message body- Parameters:
token- the tokenregex- whether the token is a regular expression or not- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the message body- Parameters:
token- the tokenregex- whether the token is a regular expression or notgroup- to group by the given number- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the message body- Parameters:
token- the tokenregex- whether the token is a regular expression or notgroup- to group by the given numberskipFirst- whether to skip the very first element- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the message body- Parameters:
token- the tokenregex- whether the token is a regular expression or notgroup- to group by the given numberskipFirst- whether to skip the very first element- Returns:
- the builder to continue processing the DSL
-
tokenizePair
Evaluates a token pair expression on the message body- Parameters:
startToken- the start tokenendToken- the end tokenincludeTokens- whether to include tokens- Returns:
- the builder to continue processing the DSL
-
tokenizeXMLPair
Evaluates a token pair expression on the message body with XML content- Parameters:
tagName- the tag name of the child nodes to tokenizeinheritNamespaceTagName- optional parent or root tag name that contains namespace(s) to inheritgroup- to group by the given number- Returns:
- the builder to continue processing the DSL
-
tokenizeXMLPair
Evaluates a token pair expression on the message body with XML content- Parameters:
tagName- the tag name of the child nodes to tokenizeinheritNamespaceTagName- optional parent or root tag name that contains namespace(s) to inheritgroup- to group by the given number- Returns:
- the builder to continue processing the DSL
-
xtokenize
Evaluates an XML token expression on the message body with XML content- Parameters:
path- the xpath like path notation specifying the child nodes to tokenizemode- one of 'i', 'w', or 'u' to inject the namespaces to the token, to wrap the token with its ancestor contet, or to unwrap to its element childnamespaces- the namespace map to the namespace bindingsgroup- to group by the given number- Returns:
- the builder to continue processing the DSL
-
xpath
Evaluates an XPath expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
xpath
Evaluates an XPath expression with the specified result type- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
xpath
Evaluates an XPath expression with the specified result type and set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expressionnamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
xpath
Evaluates an XPath expression with the specified result type and set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expressionnamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
xpath
Evaluates an XPath expression with the specified set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatednamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
xpath
Evaluates an XPath expression with the specified set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatednamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
xquery
Evaluates an XQuery expression- Parameters:
text- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
xquery
Evaluates an XQuery expression with the specified result type- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
xquery
Evaluates an XQuery expression with the specified result type and set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expressionnamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
xquery
Evaluates an XQuery expression with the specified result type and set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatedresultType- the return type expected by the expressionnamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
xquery
Evaluates an XQuery expression with the specified set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatednamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
xquery
Evaluates an XQuery expression with the specified set of namespace prefixes and URIs- Parameters:
text- the expression to be evaluatednamespaces- the namespace prefix and URIs to use- Returns:
- the builder to continue processing the DSL
-
wasm
Evaluates Wasm expression- Parameters:
functionName- the name of the Wasm function to be evaluatedmodule- the Wasm module providing the expression function- Returns:
- the builder to continue processing the DSL
-
wasm
Evaluates Wasm expression- Parameters:
functionName- the name of the Wasm function to be evaluatedmodule- the Wasm module providing the expression functionresultType- the return type expected by the expression- Returns:
- the builder to continue processing the DSL
-
language
Evaluates a given language name with the expression text- Parameters:
language- the name of the languageexpression- the expression in the given language- Returns:
- the builder to continue processing the DSL
-