org.apache.camel.builder
Class Builder

java.lang.Object
  extended by org.apache.camel.builder.Builder

public final class Builder
extends Object

A helper class for including portions of the expression and predicate Java DSL

Version:
$Revision: 789536 $

Method Summary
static
<E extends Exchange>
ValueBuilder<E>
body()
          Returns a predicate and value builder for the inbound body on an exchange
static
<E extends Exchange,T>
ValueBuilder<E>
bodyAs(Class<T> type)
          Returns a predicate and value builder for the inbound message body as a specific type
static
<E extends Exchange>
ValueBuilder<E>
constant(Object value)
          Returns a constant expression
static
<E extends Exchange>
ValueBuilder<E>
faultBody()
          Returns a predicate and value builder for the fault body on an exchange
static
<E extends Exchange,T>
ValueBuilder<E>
faultBodyAs(Class<T> type)
          Returns a predicate and value builder for the fault message body as a specific type
static
<E extends Exchange>
ValueBuilder<E>
header(String name)
          Returns a predicate and value builder for headers on an exchange
static
<E extends Exchange>
ValueBuilder<E>
outBody()
          Returns a predicate and value builder for the outbound body on an exchange
static
<E extends Exchange,T>
ValueBuilder<E>
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
<E extends Exchange>
ValueBuilder<E>
systemProperty(String name)
          Returns an expression for the given system property
static
<E extends Exchange>
ValueBuilder<E>
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

constant

public static <E extends Exchange> ValueBuilder<E> constant(Object value)
Returns a constant expression


header

public static <E extends Exchange> ValueBuilder<E> header(String name)
Returns a predicate and value builder for headers on an exchange


body

public static <E extends Exchange> ValueBuilder<E> body()
Returns a predicate and value builder for the inbound body on an exchange


bodyAs

public static <E extends Exchange,T> ValueBuilder<E> bodyAs(Class<T> type)
Returns a predicate and value builder for the inbound message body as a specific type


outBody

public static <E extends Exchange> ValueBuilder<E> outBody()
Returns a predicate and value builder for the outbound body on an exchange


outBodyAs

public static <E extends Exchange,T> ValueBuilder<E> outBodyAs(Class<T> type)
Returns a predicate and value builder for the outbound message body as a specific type


faultBody

public static <E extends Exchange> ValueBuilder<E> faultBody()
Returns a predicate and value builder for the fault body on an exchange


faultBodyAs

public static <E extends Exchange,T> ValueBuilder<E> faultBodyAs(Class<T> type)
Returns a predicate and value builder for the fault message body as a specific type


property

public static ValueBuilder property(String name)
Returns a predicate and value builder for properties on an exchange


systemProperty

public static <E extends Exchange> ValueBuilder<E> systemProperty(String name)
Returns an expression for the given system property


systemProperty

public static <E extends Exchange> ValueBuilder<E> systemProperty(String name,
                                                                  String defaultValue)
Returns an expression for the given system property


regexReplaceAll

public static ValueBuilder regexReplaceAll(Expression content,
                                           String regex,
                                           String replacement)
Returns an expression that replaces all occurrences of the regular expression with the given replacement


regexReplaceAll

public static ValueBuilder regexReplaceAll(Expression content,
                                           String regex,
                                           Expression replacement)
Returns an expression that replaces all occurrences of the regular expression with the given replacement



Apache CAMEL