Package org.apache.camel.builder
Class ExpressionClauseSupport<T>
java.lang.Object
org.apache.camel.builder.ExpressionClauseSupport<T>
- All Implemented Interfaces:
org.apache.camel.spi.ExpressionFactoryAware
,org.apache.camel.spi.PredicateFactoryAware
public class ExpressionClauseSupport<T>
extends Object
implements org.apache.camel.spi.ExpressionFactoryAware, org.apache.camel.spi.PredicateFactoryAware
A support class for building expression clauses.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbody()
An expression of an inbound message bodyAn expression of an inbound message body converted to the expected typeprotected void
configureExpression
(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression) Specify the constant expression value.Specify the constant expression value.Specify the constant expression value.protected org.apache.camel.Expression
createExpression
(org.apache.camel.CamelContext camelContext) 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
(org.apache.camel.Expression expression) Specify anExpression
instanceorg.apache.camel.ExpressionFactory
org.apache.camel.ExpressionFactory
org.apache.camel.Expression
org.apache.camel.PredicateFactory
org.apache.camel.PredicateFactory
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 JOOR expressionEvaluates an JOOR expressionEvaluates JQ expressionEvaluates JQ expressionEvaluates JQ expressionEvaluates JQ expressionEvaluates 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 expressionjsonpath
(String text, boolean suppressExceptions, boolean allowSimple, Class<?> resultType, String headerName) Evaluates 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, boolean allowSimple, String headerName) Evaluates a Json Path expression with writeAsString enabled.jsonpathWriteAsString
(String text, boolean suppressExceptions, boolean allowSimple, String headerName, Class<?> resultType) 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 textlanguage
(org.apache.camel.ExpressionFactory expression) Specify anExpressionFactory
instanceEvaluates 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 aExpression
by looking up existingExpression
from theRegistry
void
setExpressionType
(org.apache.camel.ExpressionFactory expressionType) void
setExpressionValue
(org.apache.camel.Expression expressionValue) void
setPredicateType
(org.apache.camel.PredicateFactory predicateType) Evaluates 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 given headerEvaluates a token expression on the given headerEvaluates a token expression on the given headerEvaluates a token expression on the given headerEvaluates a token expression on the given headerEvaluates a token expression on the given headertokenize
(String token, String headerName, boolean regex, String group, String groupDelimiter, boolean skipFirst) Evaluates a token expression on the given headertokenizePair
(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 contentEvaluates an XPath expressionEvaluates an XPath expression with the specified result typeEvaluates an XPath expression with the specified result type on the supplied header name's contentsEvaluates 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 URIsxpath
(String text, Class<?> resultType, org.apache.camel.support.builder.Namespaces namespaces, String headerName) Evaluates an XPath expression with the specified result type and set of namespace prefixes and URIs on the supplied header name's contentsEvaluates an XPath expression on the supplied header name's contentsEvaluates 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 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 URIsxquery
(String text, Class<?> resultType, org.apache.camel.support.builder.Namespaces namespaces, String headerName) Evaluates an XQuery expression with the specified result type and set of namespace prefixes and URIsEvaluates an XQuery expressionEvaluates an XQuery expression with the specified set of namespace prefixes and URIsEvaluates an XQuery expression with the specified set of namespace prefixes and URIsxtokenize
(String path, char mode, org.apache.camel.support.builder.Namespaces namespaces, int group) Evaluates an XML token expression on the message body with XML content
-
Constructor Details
-
ExpressionClauseSupport
-
-
Method Details
-
expression
Specify anExpression
instance -
language
Specify anExpressionFactory
instance -
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
An expression of the exchange -
inMessage
An expression of an inbound message -
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
An expression of the inbound headers -
exchangePattern
An expression of the exchange pattern -
exchangeProperty
An expression of an exchange property of the given name -
exchangeProperties
An expression of the exchange properties -
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
Evaluates an JOOR expression- Parameters:
text
- the expression to be evaluated- Returns:
- the builder to continue processing the DSL
-
joor
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
-
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
-
jq
Evaluates JQ expression- Parameters:
text
- the expression to be evaluatedheaderOrPropertyName
- the name of the header or the property to apply the expression to- Returns:
- the builder to continue processing the DSL
-
jq
Evaluates JQ expression- Parameters:
text
- the expression to be evaluatedheaderName
- the name of the header to apply the expression topropertyName
- the name of the propertyName to apply the expression to- 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 expressionheaderOrPropertyName
- the name of the header or the property to apply the expression to- 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 expressionheaderName
- the name of the header to apply the expression topropertyName
- the name of the propertyName to apply the expression to- 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
public T jsonpath(String text, boolean suppressExceptions, boolean allowSimple, Class<?> resultType) 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
-
jsonpath
public T jsonpath(String text, boolean suppressExceptions, boolean allowSimple, Class<?> resultType, String headerName) 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 expressionheaderName
- the name of the header to apply the expression to- 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
-
jsonpathWriteAsString
public T jsonpathWriteAsString(String text, boolean suppressExceptions, boolean allowSimple, String headerName) 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 expressionheaderName
- the name of the header to apply the expression to- Returns:
- the builder to continue processing the DSL
-
jsonpathWriteAsString
public T jsonpathWriteAsString(String text, boolean suppressExceptions, boolean allowSimple, String headerName, Class<?> resultType) 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 expressionheaderName
- the name of the header to apply the expression toresultType
- the return type expected by the 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 aExpression
by looking up existingExpression
from theRegistry
- 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 given header- Parameters:
token
- the tokenheaderName
- name of header to tokenize- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the given header- Parameters:
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or not- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the given header- Parameters:
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or notgroup
- to group by number of parts- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the given header- Parameters:
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or notskipFirst
- whether to skip the very first element- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the given header- Parameters:
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or notgroup
- to group by number of partsskipFirst
- whether to skip the very first element- Returns:
- the builder to continue processing the DSL
-
tokenize
Evaluates a token expression on the given header- Parameters:
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or notgroup
- to group by number of partsskipFirst
- whether to skip the very first element- Returns:
- the builder to continue processing the DSL
-
tokenize
public T tokenize(String token, String headerName, boolean regex, String group, String groupDelimiter, boolean skipFirst) Evaluates a token expression on the given header- Parameters:
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or notgroup
- to group by number of partsgroupDelimiter
- delimiter to use when groupingskipFirst
- 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
public T xtokenize(String path, char mode, org.apache.camel.support.builder.Namespaces namespaces, int group) 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 on the supplied header name's contents- Parameters:
text
- the expression to be evaluatedheaderName
- the name of the header to apply the expression to- 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 on the supplied header name's contents- Parameters:
text
- the expression to be evaluatedresultType
- the return type expected by the expressionheaderName
- the name of the header to apply the expression to- Returns:
- the builder to continue processing the DSL
-
xpath
public T xpath(String text, Class<?> resultType, org.apache.camel.support.builder.Namespaces namespaces) 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
public T xpath(String text, Class<?> resultType, org.apache.camel.support.builder.Namespaces namespaces, String headerName) Evaluates an XPath expression with the specified result type and set of namespace prefixes and URIs on the supplied header name's contents- Parameters:
text
- the expression to be evaluatedresultType
- the return type expected by the expressionnamespaces
- the namespace prefix and URIs to useheaderName
- the name of the header to apply the expression to- 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- Parameters:
text
- the expression to be evaluatedheaderName
- the name of the header to apply the expression to- 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- Parameters:
text
- the expression to be evaluatedresultType
- the return type expected by the expressionheaderName
- the name of the header to apply the expression to- Returns:
- the builder to continue processing the DSL
-
xquery
public T xquery(String text, Class<?> resultType, org.apache.camel.support.builder.Namespaces namespaces) 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
public T xquery(String text, Class<?> resultType, org.apache.camel.support.builder.Namespaces namespaces, String headerName) 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 useheaderName
- the name of the header to apply the expression to- 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
-
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
-
getExpressionValue
public org.apache.camel.Expression getExpressionValue() -
setExpressionValue
public void setExpressionValue(org.apache.camel.Expression expressionValue) -
getExpressionType
public org.apache.camel.ExpressionFactory getExpressionType() -
setExpressionType
public void setExpressionType(org.apache.camel.ExpressionFactory expressionType) -
getExpressionFactory
public org.apache.camel.ExpressionFactory getExpressionFactory()- Specified by:
getExpressionFactory
in interfaceorg.apache.camel.spi.ExpressionFactoryAware
-
getPredicateType
public org.apache.camel.PredicateFactory getPredicateType() -
setPredicateType
public void setPredicateType(org.apache.camel.PredicateFactory predicateType) -
getPredicateFactory
public org.apache.camel.PredicateFactory getPredicateFactory()- Specified by:
getPredicateFactory
in interfaceorg.apache.camel.spi.PredicateFactoryAware
-
createExpression
protected org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext) -
configureExpression
protected void configureExpression(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression)
-