|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.ExpressionClauseSupport<T>
public class ExpressionClauseSupport<T>
A support class for building expression clauses.
Constructor Summary | |
---|---|
ExpressionClauseSupport(T result)
|
Method Summary | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
||||||||||||
protected void |
configureExpression(CamelContext camelContext,
Expression expression)
|
||||||||||||
T |
constant(Object value)
Specify the constant expression value |
||||||||||||
protected Expression |
createExpression(CamelContext camelContext)
|
||||||||||||
T |
el(String text)
Evaluates the EL Language from JSP and JSF using the JUEL library |
||||||||||||
T |
exchange()
An expression of the exchange |
||||||||||||
T |
exchangePattern()
An expression of the exchange pattern |
||||||||||||
T |
expression(Expression expression)
Specify an Expression instance |
||||||||||||
T |
expression(ExpressionDefinition expression)
|
||||||||||||
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 |
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)
Evaluates an expression using the |
T |
method(Class<?> beanType,
String method)
Evaluates an expression using the |
T |
method(Object instance)
Evaluates an expression using the |
T |
method(Object instance,
String method)
Evaluates an expression using the |
T |
method(String bean)
Evaluates an expression using the |
T |
method(String bean,
String method)
Evaluates an expression using the |
T |
mvel(String text)
Evaluates a MVEL expression |
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 Expression by looking up existing Expression
from the Registry |
||||||||||||
T |
ruby(String text)
Evaluates a Ruby expression |
||||||||||||
void |
setExpressionType(ExpressionDefinition expressionType)
|
||||||||||||
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 an 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 |
tokenize(String token,
String headerName,
boolean regex,
int group)
Evaluates a token expression on the given header |
||||||||||||
T |
tokenizePair(String startToken,
String endToken,
boolean includeTokens)
Evaluates a token pair expression on the message body |
||||||||||||
T |
tokenizeXMLPair(String tagName,
String inheritNamespaceTagName,
int group)
Evaluates a token pair expression on the message body with XML content |
||||||||||||
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,
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 |
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,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionClauseSupport(T result)
Method Detail |
---|
public T expression(Expression expression)
Expression
instance
public T expression(ExpressionDefinition expression)
public T constant(Object value)
public T exchange()
public T inMessage()
public T outMessage()
public T body()
public T body(Class<?> expectedType)
public T outBody()
public T outBody(Class<?> expectedType)
public T header(String name)
public T headers()
public T outHeader(String name)
public T outHeaders()
public T attachments()
public T exchangePattern()
public T property(String name)
public T properties()
public T method(String bean)
public T method(Object instance)
public T method(Class<?> beanType)
public T method(String bean, String method)
public T method(Object instance, String method)
public T method(Class<?> beanType, String method)
public T el(String text)
text
- the expression to be evaluated
public T groovy(String text)
text
- the expression to be evaluated
public T javaScript(String text)
text
- the expression to be evaluated
public T jxpath(String text)
text
- the expression to be evaluated
public T jxpath(String text, boolean lenient)
text
- the expression to be evaluatedlenient
- to configure whether lenient is in use or not
public T ognl(String text)
text
- the expression to be evaluated
public T mvel(String text)
text
- the expression to be evaluated
public T php(String text)
text
- the expression to be evaluated
public T python(String text)
text
- the expression to be evaluated
public T ref(String ref)
Expression
by looking up existing Expression
from the Registry
ref
- refers to the expression to be evaluated
public T ruby(String text)
text
- the expression to be evaluated
public T spel(String text)
text
- the expression to be evaluated
public T sql(String text)
text
- the expression to be evaluated
public T simple(String text)
text
- the expression to be evaluated
public T simple(String text, Class<?> resultType)
text
- the expression to be evaluatedresultType
- the result type
public T tokenize(String token)
token
- the token
public T tokenize(String token, int group)
token
- the tokengroup
- to group by the given number
public T tokenize(String token, boolean regex)
token
- the tokenregex
- whether the token is a regular expression or not
public 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 number
public T tokenize(String token, String headerName)
token
- the tokenheaderName
- name of header to tokenize
public T tokenize(String token, String headerName, boolean regex)
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or not
public T tokenize(String token, String headerName, boolean regex, int group)
token
- the tokenheaderName
- name of header to tokenizeregex
- whether the token is a regular expression or notgroup
- to group by number of parts
public T tokenizePair(String startToken, String endToken, boolean includeTokens)
startToken
- the start tokenendToken
- the end tokenincludeTokens
- whether to include tokens
public T tokenizeXMLPair(String tagName, String inheritNamespaceTagName, int group)
tagName
- the 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
public T xpath(String text)
text
- the expression to be evaluated
public T xpath(String text, Class<?> resultType)
text
- the expression to be evaluatedresultType
- the return type expected by the expression
public 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 use
public 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 use
public T xpath(String text, Namespaces namespaces)
text
- the expression to be evaluatednamespaces
- the namespace prefix and URIs to use
public T xpath(String text, Map<String,String> namespaces)
text
- the expression to be evaluatednamespaces
- the namespace prefix and URIs to use
public T xquery(String text)
text
- the expression to be evaluated
public T xquery(String text, Class<?> resultType)
text
- the expression to be evaluatedresultType
- the return type expected by the expression
public 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 use
public 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 use
public T xquery(String text, Namespaces namespaces)
text
- the expression to be evaluatednamespaces
- the namespace prefix and URIs to use
public T xquery(String text, Map<String,String> namespaces)
text
- the expression to be evaluatednamespaces
- the namespace prefix and URIs to use
public T language(String language, String expression)
language
- the name of the languageexpression
- the expression in the given language
public Expression getExpressionValue()
public void setExpressionValue(Expression expressionValue)
public ExpressionDefinition getExpressionType()
public void setExpressionType(ExpressionDefinition expressionType)
protected Expression createExpression(CamelContext camelContext)
protected void configureExpression(CamelContext camelContext, Expression expression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |