public final class ProcessorBuilder extends Object
Processor
implementationsModifier and Type | Method and Description |
---|---|
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 message.
|
static Processor |
removeHeaders(String pattern)
Removes the headers on the message
|
static Processor |
removeHeaders(String pattern,
String... exceptionPatterns)
Removes all headers on the 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 message to the value of the expression
|
static Processor |
setFaultBody(Expression expression)
Creates a processor which sets the body of the FAULT message (FAULT must be OUT) to the value of the expression
|
static Processor |
setFaultHeader(String name,
Expression expression)
Sets the header on the FAULT message (FAULT must be OUT)
|
static Processor |
setHeader(String name,
Expression expression)
Sets the header on the message.
|
static Processor |
setOutBody(Expression expression)
Deprecated.
|
static Processor |
setOutHeader(String name,
Expression expression)
Deprecated.
|
static Processor |
setProperty(String name,
Expression expression)
Sets the property on the exchange
|
static Processor |
throwException(Exception ex)
Throws an exception
|
public static Processor setBody(Expression expression)
@Deprecated public static Processor setOutBody(Expression expression)
setBody(org.apache.camel.Expression)
public static Processor setFaultBody(Expression expression)
public static Processor setHeader(String name, Expression expression)
@Deprecated public static Processor setOutHeader(String name, Expression expression)
setHeader(String, org.apache.camel.Expression)
public static Processor setFaultHeader(String name, Expression expression)
public static Processor setProperty(String name, Expression expression)
public static Processor removeHeader(String name)
public static Processor removeHeaders(String pattern)
public static Processor removeHeaders(String pattern, String... exceptionPatterns)
@Deprecated public static Processor removeFaultHeader(String name)
removeHeader(String)
public static Processor removeProperty(String name)
public static Processor throwException(Exception ex)
Apache Camel