|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Exchange
The base message exchange interface providing access to the request, response and fault Message
instances.
Different providers such as JMS, JBI, CXF and HTTP can provide their own derived API to expose the underlying transport
semantics to avoid the leaky abstractions of generic APIs.
Method Summary | ||
---|---|---|
Exchange |
copy()
Creates a copy of the current message exchange so that it can be forwarded to another destination |
|
void |
copyFrom(Exchange source)
Copies the data into this exchange from the given exchange #param source is the source from which headers and messages will be copied |
|
CamelContext |
getContext()
Returns the container so that a processor can resolve endpoints from URIs |
|
Throwable |
getException()
Returns the exception associated with this exchange |
|
String |
getExchangeId()
Returns the exchange id |
|
Message |
getFault()
Returns the fault message |
|
Message |
getIn()
Returns the inbound request message |
|
Message |
getOut()
Returns the outbound message, lazily creating one if one has not already been associated with this exchange. |
|
Message |
getOut(boolean lazyCreate)
Returns the outbound message; optionally lazily creating one if one has not been associated with this exchange |
|
Map<String,Object> |
getProperties()
Returns all of the properties associated with the exchange |
|
Object |
getProperty(String name)
Returns a property associated with this exchange by name |
|
|
getProperty(String name,
Class<T> type)
Returns a property associated with this exchange by name and specifying the type required |
|
void |
setException(Throwable e)
Sets the exception associated with this exchange |
|
void |
setExchangeId(String id)
Set the exchange id |
|
void |
setProperty(String name,
Object value)
Sets a property on the exchange |
Method Detail |
---|
String getExchangeId()
void setExchangeId(String id)
id
- Object getProperty(String name)
name
- the name of the property
<T> T getProperty(String name, Class<T> type)
name
- the name of the propertytype
- the type of the property
void setProperty(String name, Object value)
name
- of the propertyvalue
- to associate with the nameMap<String,Object> getProperties()
Message getIn()
Message getOut()
getOut(boolean)
method
passing in null
Message getOut(boolean lazyCreate)
Message getFault()
Throwable getException()
void setException(Throwable e)
e
- CamelContext getContext()
Exchange copy()
void copyFrom(Exchange source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |