|
||||||||||
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 |
setIn(Message in)
|
|
void |
setOut(Message out)
|
|
void |
setProperties(Map<String,Object> properties)
|
|
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 Object
public Exchange copy()
Exchange
copy
in interface Exchange
public void copyFrom(Exchange exchange)
Exchange
copyFrom
in interface Exchange
public Exchange newInstance()
public CamelContext getContext()
Exchange
getContext
in interface Exchange
public Object getProperty(String name)
Exchange
getProperty
in interface Exchange
name
- the name of the property
public <T> T getProperty(String name, Class<T> type)
Exchange
getProperty
in interface Exchange
name
- the name of the propertytype
- the type of the property
public void setProperty(String name, Object value)
Exchange
setProperty
in interface Exchange
name
- of the propertyvalue
- to associate with the namepublic Map<String,Object> getProperties()
Exchange
getProperties
in interface Exchange
public void setProperties(Map<String,Object> properties)
public Message getIn()
Exchange
getIn
in interface Exchange
public void setIn(Message in)
public Message getOut()
Exchange
Exchange.getOut(boolean)
method passing in null
getOut
in interface Exchange
public Message getOut(boolean lazyCreate)
Exchange
getOut
in interface Exchange
public void setOut(Message out)
public Throwable getException()
Exchange
getException
in interface Exchange
public void setException(Throwable exception)
Exchange
setException
in interface Exchange
public Message getFault()
Exchange
getFault
in interface Exchange
public void setFault(Message fault)
public String getExchangeId()
Exchange
getExchangeId
in interface Exchange
public void setExchangeId(String id)
Exchange
setExchangeId
in interface Exchange
protected 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 |