|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.builder.ExpressionBuilder
public final class ExpressionBuilder
A helper class for working with expressions.
Method Summary | ||
---|---|---|
static
|
append(Expression<E> left,
Expression<E> right)
Appends the String evaluations of the two expressions together |
|
static
|
beanExpression(String bean)
|
|
static
|
bodyExpression()
Returns the expression for the exchanges inbound message body |
|
static
|
bodyExpression(Class<T> type)
Returns the expression for the exchanges inbound message body converted to the given type |
|
static
|
camelContextPropertiesExpression()
Returns an expression for the properties of exchange with the given name |
|
static
|
camelContextPropertyExpression(String propertyName)
Returns an expression for the property value of the camel context with the given name |
|
static
|
concatExpression(Collection<Expression> expressions)
Returns an expression which returns the string concatenation value of the various expressions |
|
static
|
concatExpression(Collection<Expression> expressions,
String expression)
Returns an expression which returns the string concatenation value of the various expressions |
|
static
|
constantExpression(Object value)
Returns an expression for the constant value |
|
static
|
convertTo(Expression expression,
Class type)
Returns an expression which converts the given expression to the given type |
|
static
|
dateExpression(String command,
String pattern)
|
|
static
|
evaluateStringExpression(Expression<E> expression,
E exchange)
Evaluates the expression on the given exchange and returns the String representation |
|
static
|
exchangeExpression()
Returns the expression for the exchange |
|
static
|
faultBodyExpression()
Returns the expression for the fault messages body |
|
static
|
faultBodyExpression(Class<T> type)
Returns the expression for the exchanges fault message body converted to the given type |
|
static
|
headerExpression(String headerName)
Returns an expression for the header value with the given name |
|
static
|
headersExpression()
Returns an expression for the inbound message headers |
|
static
|
inMessageExpression()
Returns the expression for the IN message |
|
static
|
messageIdExpression()
Returns an Expression for the inbound message id |
|
static
|
outBodyExpression()
Returns the expression for the out messages body |
|
static
|
outBodyExpression(Class<T> type)
Returns the expression for the exchanges outbound message body converted to the given type |
|
static
|
outHeaderExpression(String headerName)
Returns an expression for the out header value with the given name |
|
static
|
outHeadersExpression()
Returns an expression for the outbound message headers |
|
static
|
outMessageExpression()
Returns the expression for the OUT message |
|
static
|
propertiesExpression()
Returns an expression for the properties of exchange with the given name |
|
static
|
propertyExpression(String propertyName)
Returns an expression for the property value of exchange with the given name |
|
static
|
regexReplaceAll(Expression<E> expression,
String regex,
Expression<E> replacementExpression)
Transforms the expression into a String then performs the regex replaceAll to transform the String and return the result |
|
static
|
regexReplaceAll(Expression<E> expression,
String regex,
String replacement)
Transforms the expression into a String then performs the regex replaceAll to transform the String and return the result |
|
static
|
regexTokenize(Expression<E> expression,
String regexTokenizer)
Returns a tokenize expression which will tokenize the string with the given regex |
|
static
|
simpleExpression(String simple)
|
|
static
|
systemProperty(String name)
Returns an expression for the given system property |
|
static
|
systemProperty(String name,
String defaultValue)
Returns an expression for the given system property |
|
static
|
systemPropertyExpression(String propertyName)
Returns an expression for a system property value with the given name |
|
static
|
systemPropertyExpression(String propertyName,
String defaultValue)
Returns an expression for a system property value with the given name |
|
static
|
tokenizeExpression(Expression<E> expression,
String token)
Returns a tokenize expression which will tokenize the string with the given token |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <E extends Exchange> Expression<E> headerExpression(String headerName)
headerName
- the name of the header the expression will return
public static <E extends Exchange> Expression<E> headersExpression()
Message.getHeaders()
public static <E extends Exchange> Expression<E> outHeaderExpression(String headerName)
headerName
- the name of the header the expression will return
public static <E extends Exchange> Expression<E> outHeadersExpression()
Message.getHeaders()
public static <E extends Exchange> Expression<E> propertyExpression(String propertyName)
propertyName
- the name of the property the expression will return
Exchange.getProperty(String)
public static <E extends Exchange> Expression<E> propertiesExpression()
Exchange.getProperties()
public static <E extends Exchange> Expression<E> camelContextPropertiesExpression()
Exchange.getProperties()
public static <E extends Exchange> Expression<E> camelContextPropertyExpression(String propertyName)
propertyName
- the name of the property the expression will return
Exchange.getProperty(String)
public static <E extends Exchange> Expression<E> systemPropertyExpression(String propertyName)
propertyName
- the name of the system property the expression will
return
public static <E extends Exchange> Expression<E> systemPropertyExpression(String propertyName, String defaultValue)
propertyName
- the name of the system property the expression will
return
public static <E extends Exchange> Expression<E> constantExpression(Object value)
value
- the value the expression will return
public static <E extends Exchange> Expression<E> bodyExpression()
public static <E extends Exchange,T> Expression<E> bodyExpression(Class<T> type)
public static <E extends Exchange> Expression<E> outBodyExpression()
public static <E extends Exchange,T> Expression<E> outBodyExpression(Class<T> type)
public static <E extends Exchange> Expression<E> faultBodyExpression()
public static <E extends Exchange,T> Expression<E> faultBodyExpression(Class<T> type)
public static <E extends Exchange> Expression<E> exchangeExpression()
public static <E extends Exchange> Expression<E> inMessageExpression()
public static <E extends Exchange> Expression<E> outMessageExpression()
public static <E extends Exchange> Expression<E> convertTo(Expression expression, Class type)
public static <E extends Exchange> Expression<E> tokenizeExpression(Expression<E> expression, String token)
public static <E extends Exchange> Expression<E> regexTokenize(Expression<E> expression, String regexTokenizer)
public static <E extends Exchange> Expression<E> regexReplaceAll(Expression<E> expression, String regex, String replacement)
public static <E extends Exchange> Expression<E> regexReplaceAll(Expression<E> expression, String regex, Expression<E> replacementExpression)
public static <E extends Exchange> Expression<E> append(Expression<E> left, Expression<E> right)
public static <E extends Exchange> String evaluateStringExpression(Expression<E> expression, E exchange)
expression
- the expression to evaluateexchange
- the exchange to use to evaluate the expression
public static <E extends Exchange> Expression<E> systemProperty(String name)
public static <E extends Exchange> Expression<E> systemProperty(String name, String defaultValue)
public static <E extends Exchange> Expression<E> concatExpression(Collection<Expression> expressions)
expressions
- the expression to be concatenated dynamically
public static <E extends Exchange> Expression<E> concatExpression(Collection<Expression> expressions, String expression)
expressions
- the expression to be concatenated dynamicallyexpression
- the text description of the expression
public static <E extends Exchange> Expression<E> messageIdExpression()
public static <E extends Exchange> Expression<E> dateExpression(String command, String pattern)
public static <E extends Exchange> Expression<E> simpleExpression(String simple)
public static <E extends Exchange> Expression<E> beanExpression(String bean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |