public class ExpressionClause<T> extends ExpressionDefinition
| Constructor and Description |
|---|
ExpressionClause(T result) |
| Modifier and Type | Method and Description |
|---|---|
T |
attachments()
An expression of the inbound message attachments
|
T |
body()
An expression of an inbound message body
|
T |
body(Class<?> expectedType)
An expression of an inbound message body converted to the expected type
|
T |
constant(Object value)
Specify the constant expression value
|
static <T extends ExpressionNode> |
createAndSetExpression(T result) |
T |
el(String text)
Evaluates the EL
Language from JSP and JSF using the JUEL library
|
T |
exchange()
An expression of the exchange
|
T |
expression(Expression expression)
Specify an
Expression instance |
ExpressionDefinition |
getExpressionType() |
Expression |
getExpressionValue() |
T |
groovy(String text)
Evaluates a Groovy
expression
|
T |
header(String name)
An expression of an inbound message header of the given name
|
T |
headers()
An expression of the inbound headers
|
T |
inMessage()
An expression of an inbound message
|
T |
javaScript(String text)
Evaluates a JavaScript
expression
|
T |
jsonpath(String text)
Evaluates a Json Path
expression
|
T |
jsonpath(String text,
Class<?> resultType)
Evaluates a Json Path
expression
|
T |
jxpath(String text)
Evaluates a JXPath expression
|
T |
jxpath(String text,
boolean lenient)
Evaluates a JXPath expression
|
T |
language(String language,
String expression)
Evaluates a given language name with the expression text
|
T |
method(Class<?> beanType)
|
T |
ognl(String text)
Evaluates an OGNL
expression
|
T |
outBody()
An expression of an outbound message body
|
T |
outBody(Class<?> expectedType)
An expression of an outbound message body converted to the expected type
|
T |
outHeader(String name)
An expression of an outbound message header of the given name
|
T |
outHeaders()
An expression of the outbound headers
|
T |
outMessage()
An expression of an inbound message
|
T |
php(String text)
Evaluates a PHP
expression
|
T |
properties()
An expression of the exchange properties
|
T |
property(String name)
An expression of an exchange property of the given name
|
T |
python(String text)
Evaluates a Python
expression
|
T |
ref(String ref)
Evaluates a Ref
expression
|
T |
ruby(String text)
Evaluates a Ruby
expression
|
protected void |
setExpressionType(ExpressionDefinition expressionType)
Allows derived classes to set a lazily created expressionType instance
such as if using the
ExpressionClause |
protected void |
setExpressionValue(Expression expressionValue) |
T |
simple(String text)
Evaluates a Simple
expression
|
T |
simple(String text,
Class<?> resultType)
Evaluates a Simple
expression
|
T |
spel(String text)
Evaluates a SpEL
expression
|
T |
sql(String text)
Evaluates an SQL
expression
|
T |
tokenize(String token)
Evaluates a token expression on the message body
|
T |
tokenize(String token,
boolean regex)
Evaluates a token expression on the message body
|
T |
tokenize(String token,
boolean regex,
int group)
Evaluates a token expression on the message body
|
T |
tokenize(String token,
int group)
Evaluates a token expression on the message body
|
T |
tokenize(String token,
String headerName)
Evaluates a token expression on the given header
|
T |
tokenize(String token,
String headerName,
boolean regex)
Evaluates a token expression on the given header
|
T |
tokenizePair(String startToken,
String endToken)
Evaluates a token pair expression on the message body.
|
T |
tokenizePair(String startToken,
String endToken,
boolean includeTokens)
Evaluates a token pair expression on the message body
|
T |
tokenizeXML(String tagName)
Evaluates a XML token expression on the message body with XML content
|
T |
tokenizeXML(String tagName,
int group)
Evaluates a XML token expression on the message body with XML content
|
T |
tokenizeXML(String tagName,
String inheritNamespaceTagName)
Evaluates a token pair expression on the message body with XML content
|
T |
tokenizeXML(String tagName,
String inheritNamespaceTagName,
int group)
Evaluates a token pair expression on the message body with XML content
|
T |
vtdxml(String text)
Evaluates an XPath
expression using the VTD-XML library
|
T |
vtdxml(String text,
Map<String,String> namespaces)
Evaluates an XPath
expression using the VTD-XML library
with the specified set of namespace prefixes and URIs
|
T |
vtdxml(String text,
Namespaces namespaces)
Evaluates an XPath
expression using the VTD-XML library
with the specified set of namespace prefixes and URIs
|
T |
xpath(String text)
Evaluates an XPath
expression
|
T |
xpath(String text,
Class<?> resultType)
Evaluates an XPath
expression with the specified result type
|
T |
xpath(String text,
Class<?> resultType,
Map<String,String> namespaces)
Evaluates an XPath
expression with the specified result type and set of namespace
prefixes and URIs
|
T |
xpath(String text,
Class<?> resultType,
Namespaces namespaces)
Evaluates an XPath
expression with the specified result type and set of namespace
prefixes and URIs
|
T |
xpath(String text,
Class<?> resultType,
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
|
T |
xpath(String text,
Class<?> resultType,
String headerName)
Evaluates an XPath
expression with the specified result type on the supplied
header name's contents
|
T |
xpath(String text,
Map<String,String> namespaces)
Evaluates an XPath
expression with the specified set of namespace prefixes and URIs
|
T |
xpath(String text,
Namespaces namespaces)
Evaluates an XPath
expression with the specified set of namespace prefixes and URIs
|
T |
xpath(String text,
String headerName)
Evaluates an XPath
expression on the supplied header name's contents
|
T |
xquery(String text)
Evaluates an XQuery expression
|
T |
xquery(String text,
Class<?> resultType)
Evaluates an XQuery expression
with the specified result type
|
T |
xquery(String text,
Class<?> resultType,
Map<String,String> namespaces)
Evaluates an XQuery expression
with the specified result type and set of namespace prefixes and URIs
|
T |
xquery(String text,
Class<?> resultType,
Namespaces namespaces)
Evaluates an XQuery expression
with the specified result type and set of namespace prefixes and URIs
|
T |
xquery(String text,
Class<?> resultType,
Namespaces namespaces,
String headerName)
Evaluates an XQuery expression
with the specified result type
|
T |
xquery(String text,
Class<?> resultType,
String headerName)
Evaluates an XQuery expression
with the specified result type
|
T |
xquery(String text,
Map<String,String> namespaces)
Evaluates an XQuery expression
with the specified set of namespace prefixes and URIs
|
T |
xquery(String text,
Namespaces namespaces)
Evaluates an XQuery expression
with the specified set of namespace prefixes and URIs
|
T |
xquery(String text,
String headerName)
Evaluates an XPath
expression on the supplied header name's contents
|
assertMatches, configureExpression, configurePredicate, createExpression, createExpression, createPredicate, createPredicate, evaluate, evaluate, getExpression, getId, getLabel, getLabel, getLanguage, getPredicate, getTrim, isTrim, matches, setExpression, setId, setProperty, setTrim, toStringpublic ExpressionClause(T result)
public static <T extends ExpressionNode> ExpressionClause<T> createAndSetExpression(T result)
public T expression(Expression expression)
Expression instancepublic T outMessage()
public T body(Class<?> expectedType)
public T outBody(Class<?> expectedType)
public T outHeader(String name)
public T outHeaders()
public T attachments()
public T properties()
public T method(String bean)
bean - the name of the bean looked up the registrypublic T method(Object instance)
instance - the instance of the beanpublic T method(Class<?> beanType)
beanType - the Class of the bean which we want to invokepublic T method(String bean, String method)
bean - the name of the bean looked up the registrymethod - the name of the method to invoke on the beanpublic T method(Object instance, String method)
instance - the instance of the beanmethod - the name of the method to invoke on the beanpublic T method(Class<?> beanType, String method)
beanType - the Class of the bean which we want to invokemethod - the name of the method to invoke on the beanpublic T el(String text)
text - the expression to be evaluatedpublic T groovy(String text)
text - the expression to be evaluatedpublic T javaScript(String text)
text - the expression to be evaluatedpublic T jsonpath(String text)
text - the expression to be evaluatedpublic T jsonpath(String text, Class<?> resultType)
text - the expression to be evaluatedresultType - the return type expected by the expressionpublic T jxpath(String text)
text - the expression to be evaluatedpublic T jxpath(String text, boolean lenient)
text - the expression to be evaluatedlenient - to configure whether lenient is in use or notpublic T ognl(String text)
text - the expression to be evaluatedpublic T mvel(String text)
text - the expression to be evaluatedpublic T php(String text)
text - the expression to be evaluatedpublic T python(String text)
text - the expression to be evaluatedpublic T ref(String ref)
ref - refers to the expression to be evaluatedpublic T ruby(String text)
text - the expression to be evaluatedpublic T sql(String text)
text - the expression to be evaluatedpublic T spel(String text)
text - the expression to be evaluatedpublic T simple(String text)
text - the expression to be evaluatedpublic T simple(String text, Class<?> resultType)
text - the expression to be evaluatedresultType - the result typepublic T tokenize(String token)
token - the tokenpublic T tokenize(String token, boolean regex)
token - the tokenregex - whether the token is a regular expression or notpublic T tokenize(String token, boolean regex, int group)
token - the tokenregex - whether the token is a regular expression or notgroup - to group by the given numberpublic T tokenize(String token, int group)
token - the tokengroup - to group by the given numberpublic T tokenize(String token, String headerName)
token - the tokenheaderName - name of header to tokenizepublic T tokenize(String token, String headerName, boolean regex)
token - the tokenheaderName - name of header to tokenizeregex - whether the token is a regular expression or notpublic T tokenizePair(String startToken, String endToken)
startToken - the start tokenendToken - the end tokenpublic T tokenizePair(String startToken, String endToken, boolean includeTokens)
startToken - the start tokenendToken - the end tokenincludeTokens - whether to include tokenspublic T tokenizeXML(String tagName)
tagName - the the tag name of the child nodes to tokenizepublic T tokenizeXML(String tagName, int group)
tagName - the the tag name of the child nodes to tokenizegroup - to group by the given numberpublic T tokenizeXML(String tagName, String inheritNamespaceTagName)
tagName - the the tag name of the child nodes to tokenizeinheritNamespaceTagName - parent or root tag name that contains namespace(s) to inheritpublic T tokenizeXML(String tagName, String inheritNamespaceTagName, int group)
tagName - the the tag name of the child nodes to tokenizeinheritNamespaceTagName - parent or root tag name that contains namespace(s) to inheritgroup - to group by the given numberpublic T vtdxml(String text)
text - the expression to be evaluatedpublic T vtdxml(String text, Namespaces namespaces)
text - the expression to be evaluatednamespaces - the namespace prefix and URIs to usepublic T vtdxml(String text, Map<String,String> namespaces)
text - the expression to be evaluatednamespaces - the namespace prefix and URIs to usepublic T xpath(String text)
text - the expression to be evaluatedpublic T xpath(String text, String headerName)
text - the expression to be evaluatedheaderName - the name of the header to apply the expression topublic T xpath(String text, Class<?> resultType)
text - the expression to be evaluatedresultType - the return type expected by the expressionpublic T xpath(String text, Class<?> resultType, String headerName)
text - the expression to be evaluatedresultType - the return type expected by the expressionheaderName - the name of the header to apply the expression topublic T xpath(String text, Class<?> resultType, Namespaces namespaces)
text - the expression to be evaluatedresultType - the return type expected by the expressionnamespaces - the namespace prefix and URIs to usepublic T xpath(String text, Class<?> resultType, Namespaces namespaces, String headerName)
text - the expression to be evaluatedresultType - the return type expected by the expressionheaderName - the name of the header to apply the expression tonamespaces - the namespace prefix and URIs to usepublic T xpath(String text, Class<?> resultType, Map<String,String> namespaces)
text - the expression to be evaluatedresultType - the return type expected by the expressionnamespaces - the namespace prefix and URIs to usepublic T xpath(String text, Namespaces namespaces)
text - the expression to be evaluatednamespaces - the namespace prefix and URIs to usepublic T xpath(String text, Map<String,String> namespaces)
text - the expression to be evaluatednamespaces - the namespace prefix and URIs to usepublic T xquery(String text)
text - the expression to be evaluatedpublic T xquery(String text, String headerName)
text - the expression to be evaluatedheaderName - the name of the header to apply the expression topublic T xquery(String text, Class<?> resultType)
text - the expression to be evaluatedresultType - the return type expected by the expressionpublic T xquery(String text, Class<?> resultType, String headerName)
text - the expression to be evaluatedtext - the expression to be evaluatedresultType - the return type expected by the expressionheaderName - the name of the header to apply the expression topublic T xquery(String text, Class<?> resultType, Namespaces namespaces)
text - the expression to be evaluatedresultType - the return type expected by the expressionnamespaces - the namespace prefix and URIs to usepublic T xquery(String text, Class<?> resultType, Namespaces namespaces, String headerName)
text - the expression to be evaluatedresultType - the return type expected by the expressionheaderName - the name of the header to apply the expression tonamespaces - the namespace prefix and URIs to usepublic T xquery(String text, Class<?> resultType, Map<String,String> namespaces)
text - the expression to be evaluatedresultType - the return type expected by the expressionnamespaces - the namespace prefix and URIs to usepublic T xquery(String text, Namespaces namespaces)
text - the expression to be evaluatednamespaces - the namespace prefix and URIs to usepublic T xquery(String text, Map<String,String> namespaces)
text - the expression to be evaluatednamespaces - the namespace prefix and URIs to usepublic T language(String language, String expression)
language - the name of the languageexpression - the expression in the given languagepublic Expression getExpressionValue()
getExpressionValue in class ExpressionDefinitionprotected void setExpressionValue(Expression expressionValue)
setExpressionValue in class ExpressionDefinitionpublic ExpressionDefinition getExpressionType()
getExpressionType in class ExpressionDefinitionprotected void setExpressionType(ExpressionDefinition expressionType)
ExpressionDefinitionExpressionClausesetExpressionType in class ExpressionDefinitionApache Camel