|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.builder.ExpressionBuilder
public class ExpressionBuilder
| Method Summary | ||
|---|---|---|
static
|
append(Expression<E> left,
Expression<E> right)
Appends the String evaluations of the two expressions together |
|
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
|
constantExpression(Object value)
Returns an expression for the contant value |
|
static
|
convertTo(Expression expression,
Class type)
Returns an expression which converts the given expression to the given type |
|
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
|
headerExpression(String headerName)
Returns an expression for the header value with the given name |
|
static
|
inMessageExpression()
Returns the expression for the IN message |
|
static
|
outBodyExpression()
Returns the expression for the out messages body |
|
static
|
outHeaderExpression(String headerName)
Returns an expression for the out header value with the given name |
|
static
|
propertyExpression(String propertyName)
Returns an expression for the property value 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
|
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> outHeaderExpression(String headerName)
headerName - the name of the header the expression will return
public static <E extends Exchange> Expression<E> propertyExpression(String propertyName)
propertyName - the name of the property the expression will return
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> Expression<E> exchangeExpression()
public static <E extends Exchange> Expression<E> inMessageExpression()
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||