Package akka.camel
Class CamelMessage$
- java.lang.Object
-
- akka.camel.CamelMessage$
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Function2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>,CamelMessage>
,scala.Serializable
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
Deprecated.Akka Camel is deprecated in favour of 'Alpakka', the Akka Streams based collection of integrations to various endpoints (including Camel). Since 2.5.0.Returns a new CamelMessage based on thebody
andheaders
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CamelMessage$
MODULE$
Deprecated.Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description CamelMessage$()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CamelMessage
apply(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.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)
Deprecated.Returns a new CamelMessage based on thebody
,headers
andattachments
.CamelMessage
canonicalize(java.lang.Object msg)
Deprecated.Creates a canonical form of the given messagemsg
.void
copyContent(CamelMessage from, org.apache.camel.Message to)
Deprecated.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)
Deprecated.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)
Deprecated.Creates a new CamelMessageWithAttachments object from the Camel message.java.lang.String
MessageExchangeId()
Deprecated.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)
Deprecated.ReturnsSome(body, headers)
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.Function2
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
-
-
-
-
Field Detail
-
MODULE$
public static final CamelMessage$ MODULE$
Deprecated.Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public CamelMessage apply(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.- Specified by:
apply
in interfacescala.Function2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>,CamelMessage>
-
apply
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)
Deprecated.Returns a new CamelMessage based on thebody
,headers
andattachments
.- Parameters:
body
- (undocumented)headers
- (undocumented)attachments
- (undocumented)- Returns:
- (undocumented)
-
unapply
public scala.Option<scala.Tuple2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>>> unapply(CamelMessage camelMessage)
Deprecated.ReturnsSome(body, headers)
.- Parameters:
camelMessage
- (undocumented)- Returns:
- (undocumented)
-
MessageExchangeId
public java.lang.String MessageExchangeId()
Deprecated.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)
Deprecated.Creates a canonical form of the given messagemsg
. Ifmsg
of type CamelMessage thenmsg
is returned, otherwisemsg
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)
Deprecated.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)
-
from
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)
Deprecated.Creates a new CamelMessageWithAttachments object from the Camel message.- Parameters:
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)- Returns:
- (undocumented)
-
copyContent
public void copyContent(CamelMessage from, org.apache.camel.Message to)
Deprecated.INTERNAL API copies the content of this CamelMessageWithAttachments to an Apache Camel Message.- Parameters:
from
- (undocumented)to
- (undocumented)
-
-