public final class Builder extends Object
Modifier and Type | Method and Description |
---|---|
static ValueBuilder |
bean(Class<?> beanType,
String method)
Returns a bean
expression value builder
|
static ValueBuilder |
bean(Object beanOrBeanRef)
Returns a bean
expression value builder.
|
static ValueBuilder |
bean(Object beanOrBeanRef,
String method)
Returns a bean
expression value builder.
|
static ValueBuilder |
body()
Returns a predicate and value builder for the inbound body on an exchange
|
static <T> ValueBuilder |
bodyAs(Class<T> type)
Returns a predicate and value builder for the inbound message body as a
specific type
|
static ValueBuilder |
constant(Object value)
Returns a constant expression
|
static ValueBuilder |
exceptionMessage()
Returns a predicate and value builder for the exception message on an
exchange
|
static ValueBuilder |
exceptionStackTrace()
Returns a predicate and value builder for the exception stacktrace on an
exchange
|
static ValueBuilder |
exchangeProperty(String name)
Returns a predicate and value builder for properties on an exchange
|
static ValueBuilder |
header(String name)
Returns a predicate and value builder for headers on an exchange
|
static ValueBuilder |
language(String language,
String expression)
Returns a constant expression
|
static ValueBuilder |
regexReplaceAll(org.apache.camel.Expression content,
String regex,
org.apache.camel.Expression replacement)
Returns an expression that replaces all occurrences of the regular
expression with the given replacement
|
static ValueBuilder |
regexReplaceAll(org.apache.camel.Expression content,
String regex,
String replacement)
Returns an expression that replaces all occurrences of the regular
expression with the given replacement
|
static ValueBuilder |
simple(String value)
Returns a simple expression
|
static ValueBuilder |
simple(String value,
Class<?> resultType)
Returns a simple expression
|
static ValueBuilder |
systemProperty(String name)
Returns an expression for the given system property
|
static ValueBuilder |
systemProperty(String name,
String defaultValue)
Returns an expression for the given system property
|
public static ValueBuilder bean(Object beanOrBeanRef)
beanOrBeanRef
- either an instanceof a bean or a reference to bean
to lookup in the Registrypublic static ValueBuilder bean(Object beanOrBeanRef, String method)
beanOrBeanRef
- either an instanceof a bean or a reference to bean
to lookup in the Registrymethod
- the method namepublic static ValueBuilder bean(Class<?> beanType, String method)
beanType
- the bean class which will be invokedmethod
- name of method to invokepublic static ValueBuilder constant(Object value)
public static ValueBuilder language(String language, String expression)
public static ValueBuilder simple(String value)
public static ValueBuilder simple(String value, Class<?> resultType)
public static ValueBuilder header(String name)
public static ValueBuilder exchangeProperty(String name)
public static ValueBuilder body()
public static <T> ValueBuilder bodyAs(Class<T> type)
public static ValueBuilder systemProperty(String name)
public static ValueBuilder systemProperty(String name, String defaultValue)
public static ValueBuilder exceptionMessage()
public static ValueBuilder exceptionStackTrace()
public static ValueBuilder regexReplaceAll(org.apache.camel.Expression content, String regex, String replacement)
public static ValueBuilder regexReplaceAll(org.apache.camel.Expression content, String regex, org.apache.camel.Expression replacement)
Apache Camel