public class CamelMessage$ extends java.lang.Object implements scala.Function2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>,CamelMessage>, scala.Serializable
Modifier and Type | Field and Description |
---|---|
static CamelMessage$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
CamelMessage$() |
Modifier and Type | Method and Description |
---|---|
CamelMessage |
apply(java.lang.Object body,
scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Returns a new CamelMessage based on the
body and headers . |
CamelMessage |
apply(java.lang.Object body,
scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers,
scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments)
Returns a new CamelMessage based on the
body , headers and attachments . |
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 CamelMessageWithAttachments 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.
|
CamelMessage |
from(org.apache.camel.Message camelMessage,
scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers,
scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments)
Creates a new CamelMessageWithAttachments object from the Camel message.
|
java.lang.String |
MessageExchangeId()
CamelMessage header to correlate request with response messages.
|
scala.Option<scala.Tuple2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>>> |
unapply(CamelMessage camelMessage)
Returns
Some(body, headers) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$init$, apply$mcDDD$sp, apply$mcDDI$sp, apply$mcDDJ$sp, apply$mcDID$sp, apply$mcDII$sp, apply$mcDIJ$sp, apply$mcDJD$sp, apply$mcDJI$sp, apply$mcDJJ$sp, apply$mcFDD$sp, apply$mcFDI$sp, apply$mcFDJ$sp, apply$mcFID$sp, apply$mcFII$sp, apply$mcFIJ$sp, apply$mcFJD$sp, apply$mcFJI$sp, apply$mcFJJ$sp, apply$mcIDD$sp, apply$mcIDI$sp, apply$mcIDJ$sp, apply$mcIID$sp, apply$mcIII$sp, apply$mcIIJ$sp, apply$mcIJD$sp, apply$mcIJI$sp, apply$mcIJJ$sp, apply$mcJDD$sp, apply$mcJDI$sp, apply$mcJDJ$sp, apply$mcJID$sp, apply$mcJII$sp, apply$mcJIJ$sp, apply$mcJJD$sp, apply$mcJJI$sp, apply$mcJJJ$sp, apply$mcVDD$sp, apply$mcVDI$sp, apply$mcVDJ$sp, apply$mcVID$sp, apply$mcVII$sp, apply$mcVIJ$sp, apply$mcVJD$sp, apply$mcVJI$sp, apply$mcVJJ$sp, apply$mcZDD$sp, apply$mcZDI$sp, apply$mcZDJ$sp, apply$mcZID$sp, apply$mcZII$sp, apply$mcZIJ$sp, apply$mcZJD$sp, apply$mcZJI$sp, apply$mcZJJ$sp, curried, toString, tupled
public static final CamelMessage$ MODULE$
public CamelMessage apply(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
body
and headers
.apply
in interface scala.Function2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>,CamelMessage>
body
- (undocumented)headers
- (undocumented)public CamelMessage apply(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers, scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments)
body
, headers
and attachments
.body
- (undocumented)headers
- (undocumented)attachments
- (undocumented)public scala.Option<scala.Tuple2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>>> unapply(CamelMessage camelMessage)
Some(body, headers)
.camelMessage
- (undocumented)public java.lang.String MessageExchangeId()
public CamelMessage canonicalize(java.lang.Object msg)
msg
. If msg
of type
CamelMessage then msg
is returned, otherwise msg
is set as body of a
newly created CamelMessage object.msg
- (undocumented)public CamelMessage from(org.apache.camel.Message camelMessage, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
headers
- additional headers to set on the created CamelMessage in addition to those
in the Camel message.camelMessage
- (undocumented)public CamelMessage from(org.apache.camel.Message camelMessage, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers, scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments)
headers
- additional headers to set on the created CamelMessageWithAttachments in addition to those
in the Camel message.attachments
- additional attachments to set on the created CamelMessageWithAttachments in addition to those
in the Camel message.camelMessage
- (undocumented)public void copyContent(CamelMessage from, org.apache.camel.Message to)
from
- (undocumented)to
- (undocumented)