org.apache.camel.builder
Class ProcessorBuilder

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

public final class ProcessorBuilder
extends Object

A builder of a number of different Processor implementations

Version:

Method Summary
static Processor removeFaultHeader(String name)
          Deprecated. will be removed in the near future. Instead use removeHeader(String)
static Processor removeHeader(String name)
          Removes the header on the IN message
static Processor removeHeaders(String pattern)
          Removes the headers on the IN message
static Processor removeHeaders(String pattern, String... exceptionPatterns)
          Removes all headers on the IN message, except for the ones provided in the names parameter
static Processor removeProperty(String name)
          Removes the property on the exchange
static Processor setBody(Expression expression)
          Creates a processor which sets the body of the IN message to the value of the expression
static Processor setFaultBody(Expression expression)
          Creates a processor which sets the body of the FAULT message to the value of the expression
static Processor setFaultHeader(String name, Expression expression)
          Sets the header on the FAULT message
static Processor setHeader(String name, Expression expression)
          Sets the header on the IN message
static Processor setOutBody(Expression expression)
          Creates a processor which sets the body of the OUT message to the value of the expression
static Processor setOutHeader(String name, Expression expression)
          Sets the header on the OUT message
static Processor setProperty(String name, Expression expression)
          Sets the property on the exchange
static Processor throwException(Exception ex)
          Throws an exception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setBody

public static Processor setBody(Expression expression)
Creates a processor which sets the body of the IN message to the value of the expression


setOutBody

public static Processor setOutBody(Expression expression)
Creates a processor which sets the body of the OUT message to the value of the expression


setFaultBody

public static Processor setFaultBody(Expression expression)
Creates a processor which sets the body of the FAULT message to the value of the expression


setHeader

public static Processor setHeader(String name,
                                  Expression expression)
Sets the header on the IN message


setOutHeader

public static Processor setOutHeader(String name,
                                     Expression expression)
Sets the header on the OUT message


setFaultHeader

public static Processor setFaultHeader(String name,
                                       Expression expression)
Sets the header on the FAULT message


setProperty

public static Processor setProperty(String name,
                                    Expression expression)
Sets the property on the exchange


removeHeader

public static Processor removeHeader(String name)
Removes the header on the IN message


removeHeaders

public static Processor removeHeaders(String pattern)
Removes the headers on the IN message


removeHeaders

public static Processor removeHeaders(String pattern,
                                      String... exceptionPatterns)
Removes all headers on the IN message, except for the ones provided in the names parameter


removeFaultHeader

@Deprecated
public static Processor removeFaultHeader(String name)
Deprecated. will be removed in the near future. Instead use removeHeader(String)

Removes the header on the FAULT message


removeProperty

public static Processor removeProperty(String name)
Removes the property on the exchange


throwException

public static Processor throwException(Exception ex)
Throws an exception



Apache CAMEL