|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.ExchangeBuilder
public final class ExchangeBuilder
Constructor Summary | |
---|---|
ExchangeBuilder(CamelContext context)
|
Method Summary | |
---|---|
static ExchangeBuilder |
anExchange(CamelContext context)
Create the exchange by setting the camel context |
Exchange |
build()
Build up the exchange from the exchange builder |
ExchangeBuilder |
withBody(Object body)
Set the in message body on the exchange |
ExchangeBuilder |
withHeader(String key,
Object value)
Set the message header of the in message on the exchange |
ExchangeBuilder |
withPattern(ExchangePattern pattern)
Set the message exchange pattern on the exchange |
ExchangeBuilder |
withProperty(String key,
Object value)
Set the exchange property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExchangeBuilder(CamelContext context)
Method Detail |
---|
public static ExchangeBuilder anExchange(CamelContext context)
context
- the camel context
public ExchangeBuilder withBody(Object body)
body
-
public ExchangeBuilder withHeader(String key, Object value)
key
- the key of the headervalue
- the value of the header
public ExchangeBuilder withPattern(ExchangePattern pattern)
pattern
- exchange pattern
public ExchangeBuilder withProperty(String key, Object value)
key
- the key of the exchange propertyvalue
- the value of the exchange property
public Exchange build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |