akka.camel
Class CamelMessage$

java.lang.Object
  extended by akka.camel.CamelMessage$
All Implemented Interfaces:
java.io.Serializable

public class CamelMessage$
extends java.lang.Object
implements scala.Serializable

Companion object of CamelMessage class.

See Also:
Serialized Form

Field Summary
static CamelMessage$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
CamelMessage$()
           
 
Method Summary
 CamelMessage canonicalize(java.lang.Object msg)
          Creates a canonical form of the given message msg.
 void copyContent(CamelMessage from, org.apache.camel.Message to)
          INTERNAL API copies the content of this CamelMessage to an Apache Camel Message.
 CamelMessage from(org.apache.camel.Message camelMessage, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
          Creates a new CamelMessage object from the Camel message.
 java.lang.String MessageExchangeId()
          CamelMessage header to correlate request with response messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final CamelMessage$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

CamelMessage$

public CamelMessage$()
Method Detail

MessageExchangeId

public java.lang.String MessageExchangeId()
CamelMessage header to correlate request with response messages. Applications that send messages to a Producer actor may want to set this header on the request message so that it can be correlated with an asynchronous response. Messages send to Consumer actors have this header already set.

Returns:
(undocumented)

canonicalize

public CamelMessage canonicalize(java.lang.Object msg)
Creates a canonical form of the given message msg. If msg of type CamelMessage then msg is returned, otherwise msg is set as body of a newly created CamelMessage object.

Parameters:
msg - (undocumented)
Returns:
(undocumented)

from

public CamelMessage from(org.apache.camel.Message camelMessage,
                         scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Creates a new CamelMessage object from the Camel message.

Parameters:
headers - additional headers to set on the created CamelMessage in addition to those in the Camel message.
camelMessage - (undocumented)
Returns:
(undocumented)

copyContent

public void copyContent(CamelMessage from,
                        org.apache.camel.Message to)
INTERNAL API copies the content of this CamelMessage to an Apache Camel Message.

Parameters:
from - (undocumented)
to - (undocumented)