|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.Builder
public final class Builder
A helper class for including portions of the expression and predicate Java DSL
Method Summary | ||
---|---|---|
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
|
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 |
faultBody()
Returns a predicate and value builder for the fault body on an exchange |
|
static
|
faultBodyAs(Class<T> type)
Returns a predicate and value builder for the fault message body as a specific type |
|
static ValueBuilder |
header(String name)
Returns a predicate and value builder for headers on an exchange |
|
static ValueBuilder |
outBody()
Returns a predicate and value builder for the outbound body on an exchange |
|
static
|
outBodyAs(Class<T> type)
Returns a predicate and value builder for the outbound message body as a specific type |
|
static ValueBuilder |
property(String name)
Returns a predicate and value builder for properties on an exchange |
|
static ValueBuilder |
regexReplaceAll(Expression content,
String regex,
Expression replacement)
Returns an expression that replaces all occurrences of the regular expression with the given replacement |
|
static ValueBuilder |
regexReplaceAll(Expression content,
String regex,
String replacement)
Returns an expression that replaces all occurrences of the regular expression with the given replacement |
|
static ValueBuilder |
sendTo(String uri)
Returns an expression processing the exchange to the given endpoint uri. |
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ValueBuilder bean(Object beanOrBeanRef)
beanOrBeanRef
- either an instanceof a bean or a reference to bean to lookup in the Registry
public 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 name
public static ValueBuilder bean(Class<?> beanType, String method)
beanType
- the bean class which will be invokedmethod
- name of method to invoke
public static ValueBuilder constant(Object value)
public static ValueBuilder simple(String value)
public static ValueBuilder simple(String value, Class<?> resultType)
public static ValueBuilder header(String name)
public static ValueBuilder property(String name)
public static ValueBuilder body()
public static <T> ValueBuilder bodyAs(Class<T> type)
public static ValueBuilder outBody()
public static <T> ValueBuilder outBodyAs(Class<T> type)
public static ValueBuilder faultBody()
public static <T> ValueBuilder faultBodyAs(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(Expression content, String regex, String replacement)
public static ValueBuilder regexReplaceAll(Expression content, String regex, Expression replacement)
public static ValueBuilder sendTo(String uri)
uri
- endpoint uri
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |