|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultExchange
public class DefaultExchange
A default implementation of Exchange
| Field Summary | |
|---|---|
protected CamelContext |
context
|
| Constructor Summary | |
|---|---|
DefaultExchange(CamelContext context)
|
|
| Method Summary | ||
|---|---|---|
protected void |
configureMessage(Message message)
Configures the message after it has been set on the exchange |
|
Exchange |
copy()
Creates a copy of the current message exchange so that it can be forwarded to another destination |
|
void |
copyFrom(Exchange exchange)
Copies the data into this exchange from the given exchange #param source is the source from which headers and messages will be copied |
|
protected Message |
createInMessage()
Factory method used to lazily create the IN message |
|
protected Message |
createOutMessage()
Factory method to lazily create the OUT message |
|
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 |
|
Exchange |
newInstance()
|
|
void |
setException(Throwable exception)
Sets the exception associated with this exchange |
|
void |
setExchangeId(String id)
Set the exchange id |
|
void |
setFault(Message fault)
|
|
void |
setHeaders(Map<String,Object> headers)
|
|
void |
setIn(Message in)
|
|
void |
setOut(Message out)
|
|
void |
setProperty(String name,
Object value)
Sets a property on the exchange |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final CamelContext context
| Constructor Detail |
|---|
public DefaultExchange(CamelContext context)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic Exchange copy()
Exchange
copy in interface Exchangepublic void copyFrom(Exchange exchange)
Exchange
copyFrom in interface Exchangepublic Exchange newInstance()
public CamelContext getContext()
Exchange
getContext in interface Exchangepublic Object getProperty(String name)
Exchange
getProperty in interface Exchangename - the name of the property
public <T> T getProperty(String name,
Class<T> type)
Exchange
getProperty in interface Exchangename - the name of the propertytype - the type of the property
public void setProperty(String name,
Object value)
Exchange
setProperty in interface Exchangename - of the propertyvalue - to associate with the namepublic Map<String,Object> getProperties()
Exchange
getProperties in interface Exchangepublic void setHeaders(Map<String,Object> headers)
public Message getIn()
Exchange
getIn in interface Exchangepublic void setIn(Message in)
public Message getOut()
ExchangeExchange.getOut(boolean) method
passing in null
getOut in interface Exchangepublic Message getOut(boolean lazyCreate)
Exchange
getOut in interface Exchangepublic void setOut(Message out)
public Throwable getException()
Exchange
getException in interface Exchangepublic void setException(Throwable exception)
Exchange
setException in interface Exchangepublic Message getFault()
Exchange
getFault in interface Exchangepublic void setFault(Message fault)
public String getExchangeId()
Exchange
getExchangeId in interface Exchangepublic void setExchangeId(String id)
Exchange
setExchangeId in interface Exchangeprotected Message createInMessage()
protected Message createOutMessage()
protected void configureMessage(Message message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||