Package akka.camel
Class CamelMessage
- java.lang.Object
-
- akka.camel.CamelMessage
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
,scala.Serializable
public class CamelMessage extends java.lang.Object implements scala.Serializable, scala.Product
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 those headers from this message whose name is contained innames
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CamelMessage(java.lang.Object body, java.util.Map<java.lang.String,java.lang.Object> headers)
Deprecated.CamelMessage(java.lang.Object body, java.util.Map<java.lang.String,java.lang.Object> headers, java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
Deprecated.CamelMessage(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.CamelMessage(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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CamelMessage
apply(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.static 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
.static double
apply$mcDDD$sp(double v1, double v2)
Deprecated.static double
apply$mcDDI$sp(double v1, int v2)
Deprecated.static double
apply$mcDDJ$sp(double v1, long v2)
Deprecated.static double
apply$mcDID$sp(int v1, double v2)
Deprecated.static double
apply$mcDII$sp(int v1, int v2)
Deprecated.static double
apply$mcDIJ$sp(int v1, long v2)
Deprecated.static double
apply$mcDJD$sp(long v1, double v2)
Deprecated.static double
apply$mcDJI$sp(long v1, int v2)
Deprecated.static double
apply$mcDJJ$sp(long v1, long v2)
Deprecated.static float
apply$mcFDD$sp(double v1, double v2)
Deprecated.static float
apply$mcFDI$sp(double v1, int v2)
Deprecated.static float
apply$mcFDJ$sp(double v1, long v2)
Deprecated.static float
apply$mcFID$sp(int v1, double v2)
Deprecated.static float
apply$mcFII$sp(int v1, int v2)
Deprecated.static float
apply$mcFIJ$sp(int v1, long v2)
Deprecated.static float
apply$mcFJD$sp(long v1, double v2)
Deprecated.static float
apply$mcFJI$sp(long v1, int v2)
Deprecated.static float
apply$mcFJJ$sp(long v1, long v2)
Deprecated.static int
apply$mcIDD$sp(double v1, double v2)
Deprecated.static int
apply$mcIDI$sp(double v1, int v2)
Deprecated.static int
apply$mcIDJ$sp(double v1, long v2)
Deprecated.static int
apply$mcIID$sp(int v1, double v2)
Deprecated.static int
apply$mcIII$sp(int v1, int v2)
Deprecated.static int
apply$mcIIJ$sp(int v1, long v2)
Deprecated.static int
apply$mcIJD$sp(long v1, double v2)
Deprecated.static int
apply$mcIJI$sp(long v1, int v2)
Deprecated.static int
apply$mcIJJ$sp(long v1, long v2)
Deprecated.static long
apply$mcJDD$sp(double v1, double v2)
Deprecated.static long
apply$mcJDI$sp(double v1, int v2)
Deprecated.static long
apply$mcJDJ$sp(double v1, long v2)
Deprecated.static long
apply$mcJID$sp(int v1, double v2)
Deprecated.static long
apply$mcJII$sp(int v1, int v2)
Deprecated.static long
apply$mcJIJ$sp(int v1, long v2)
Deprecated.static long
apply$mcJJD$sp(long v1, double v2)
Deprecated.static long
apply$mcJJI$sp(long v1, int v2)
Deprecated.static long
apply$mcJJJ$sp(long v1, long v2)
Deprecated.static void
apply$mcVDD$sp(double v1, double v2)
Deprecated.static void
apply$mcVDI$sp(double v1, int v2)
Deprecated.static void
apply$mcVDJ$sp(double v1, long v2)
Deprecated.static void
apply$mcVID$sp(int v1, double v2)
Deprecated.static void
apply$mcVII$sp(int v1, int v2)
Deprecated.static void
apply$mcVIJ$sp(int v1, long v2)
Deprecated.static void
apply$mcVJD$sp(long v1, double v2)
Deprecated.static void
apply$mcVJI$sp(long v1, int v2)
Deprecated.static void
apply$mcVJJ$sp(long v1, long v2)
Deprecated.static boolean
apply$mcZDD$sp(double v1, double v2)
Deprecated.static boolean
apply$mcZDI$sp(double v1, int v2)
Deprecated.static boolean
apply$mcZDJ$sp(double v1, long v2)
Deprecated.static boolean
apply$mcZID$sp(int v1, double v2)
Deprecated.static boolean
apply$mcZII$sp(int v1, int v2)
Deprecated.static boolean
apply$mcZIJ$sp(int v1, long v2)
Deprecated.static boolean
apply$mcZJD$sp(long v1, double v2)
Deprecated.static boolean
apply$mcZJI$sp(long v1, int v2)
Deprecated.static boolean
apply$mcZJJ$sp(long v1, long v2)
Deprecated.scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler>
attachments()
Deprecated.scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler>
attachments(scala.collection.immutable.Set<java.lang.String> names)
Deprecated.Returns those attachments from this message whose name is contained innames
.java.lang.Object
body()
Deprecated.<T> T
bodyAs(scala.reflect.ClassTag<T> t, org.apache.camel.CamelContext camelContext)
Deprecated.Returns the body of the message converted to the typeT
.boolean
canEqual(java.lang.Object that)
Deprecated.Indicates if some other object can be compared (based on type).static CamelMessage
canonicalize(java.lang.Object msg)
Deprecated.Creates a canonical form of the given messagemsg
.CamelMessage
copy(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.java.lang.Object
copy$default$1()
Deprecated.scala.collection.immutable.Map<java.lang.String,java.lang.Object>
copy$default$2()
Deprecated.static void
copyContent(CamelMessage from, org.apache.camel.Message to)
Deprecated.INTERNAL API copies the content of this CamelMessageWithAttachments to an Apache Camel Message.boolean
equals(java.lang.Object that)
Deprecated.Indicates whether some other object is "equal to" this one.static 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.static 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.util.Map<java.lang.String,javax.activation.DataHandler>
getAttachments()
Deprecated.Java API: Returns all attachments from this message.java.util.Map<java.lang.String,javax.activation.DataHandler>
getAttachments(java.util.Set<java.lang.String> names)
Deprecated.Java API: Returns those attachments from this message whose name is contained innames
.<T> T
getBodyAs(java.lang.Class<T> clazz, org.apache.camel.CamelContext camelContext)
Deprecated.Java API: Returns the body of the message converted to the type as given by theclazz
parameter.<T> T
getHeaderAs(java.lang.String name, java.lang.Class<T> clazz, org.apache.camel.CamelContext camelContext)
Deprecated.Java API: Returns the header by givenname
parameter.java.util.Map<java.lang.String,java.lang.Object>
getHeaders()
Deprecated.Java API: Returns all headers from this message.java.util.Map<java.lang.String,java.lang.Object>
getHeaders(java.util.Set<java.lang.String> names)
Deprecated.Java API: Returns those headers from this message whose name is contained innames
.int
hashCode()
Deprecated.Returns a hash code value for the object.<T> scala.util.Try<T>
headerAs(java.lang.String name, scala.reflect.ClassTag<T> t, org.apache.camel.CamelContext camelContext)
Deprecated.Returns the header by givenname
parameter in aTry
.scala.collection.immutable.Map<java.lang.String,java.lang.Object>
headers()
Deprecated.scala.collection.immutable.Map<java.lang.String,java.lang.Object>
headers(scala.collection.immutable.Set<java.lang.String> names)
Deprecated.Returns those headers from this message whose name is contained innames
.<A,B>
CamelMessagemapBody(Mapper<A,B> transformer)
Deprecated.Java API: Returns a new CamelMessage with a transformed body using atransformer
function.<A,B>
CamelMessagemapBody(scala.Function1<A,B> transformer)
Deprecated.Returns a new CamelMessage with a transformed body using atransformer
function.static java.lang.String
MessageExchangeId()
Deprecated.CamelMessage header to correlate request with response messages.int
productArity()
Deprecated.Returns the size of this product.java.lang.Object
productElement(int n)
Deprecated.Returns the n-th element of this product, 0-based.void
resetStreamCache()
Deprecated.Reset StreamCache body.java.lang.String
toString()
Deprecated.static scala.Option<scala.Tuple2<java.lang.Object,scala.collection.immutable.Map<java.lang.String,java.lang.Object>>>
unapply(CamelMessage camelMessage)
Deprecated.ReturnsSome(body, headers)
.CamelMessage
withAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
Deprecated.Java API: Creates a new CamelMessage with givenattachments
.CamelMessage
withAttachments(scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments)
Deprecated.SCALA API: Creates a new CamelMessage with givenattachments
.<T> CamelMessage
withBody(T body)
Deprecated.Java API: Returns a new CamelMessage with a new body, while keeping the same headers.<T> CamelMessage
withBodyAs(java.lang.Class<T> clazz, org.apache.camel.CamelContext camelContext)
Deprecated.Java API: Creates a CamelMessage with currentbody
converted to typeclazz
.<T> CamelMessage
withBodyAs(scala.reflect.ClassTag<T> t, org.apache.camel.CamelContext camelContext)
Deprecated.Creates a CamelMessage with currentbody
converted to typeT
.<A> CamelMessage
withHeaders(java.util.Map<java.lang.String,A> headers)
Deprecated.Java API: Creates a new CamelMessage with givenheaders
.
-
-
-
Constructor Detail
-
CamelMessage
public CamelMessage(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.
-
CamelMessage
public CamelMessage(java.lang.Object body, java.util.Map<java.lang.String,java.lang.Object> headers)
Deprecated.
-
CamelMessage
public CamelMessage(java.lang.Object body, java.util.Map<java.lang.String,java.lang.Object> headers, java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
Deprecated.
-
CamelMessage
public CamelMessage(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.
-
-
Method Detail
-
apply
public static CamelMessage apply(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.
-
apply
public static 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 static 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 static 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 static 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 static 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 static 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 static 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)
-
apply$mcZDD$sp
public static boolean apply$mcZDD$sp(double v1, double v2)
Deprecated.
-
apply$mcDDD$sp
public static double apply$mcDDD$sp(double v1, double v2)
Deprecated.
-
apply$mcFDD$sp
public static float apply$mcFDD$sp(double v1, double v2)
Deprecated.
-
apply$mcIDD$sp
public static int apply$mcIDD$sp(double v1, double v2)
Deprecated.
-
apply$mcJDD$sp
public static long apply$mcJDD$sp(double v1, double v2)
Deprecated.
-
apply$mcVDD$sp
public static void apply$mcVDD$sp(double v1, double v2)
Deprecated.
-
apply$mcZDI$sp
public static boolean apply$mcZDI$sp(double v1, int v2)
Deprecated.
-
apply$mcDDI$sp
public static double apply$mcDDI$sp(double v1, int v2)
Deprecated.
-
apply$mcFDI$sp
public static float apply$mcFDI$sp(double v1, int v2)
Deprecated.
-
apply$mcIDI$sp
public static int apply$mcIDI$sp(double v1, int v2)
Deprecated.
-
apply$mcJDI$sp
public static long apply$mcJDI$sp(double v1, int v2)
Deprecated.
-
apply$mcVDI$sp
public static void apply$mcVDI$sp(double v1, int v2)
Deprecated.
-
apply$mcZDJ$sp
public static boolean apply$mcZDJ$sp(double v1, long v2)
Deprecated.
-
apply$mcDDJ$sp
public static double apply$mcDDJ$sp(double v1, long v2)
Deprecated.
-
apply$mcFDJ$sp
public static float apply$mcFDJ$sp(double v1, long v2)
Deprecated.
-
apply$mcIDJ$sp
public static int apply$mcIDJ$sp(double v1, long v2)
Deprecated.
-
apply$mcJDJ$sp
public static long apply$mcJDJ$sp(double v1, long v2)
Deprecated.
-
apply$mcVDJ$sp
public static void apply$mcVDJ$sp(double v1, long v2)
Deprecated.
-
apply$mcZID$sp
public static boolean apply$mcZID$sp(int v1, double v2)
Deprecated.
-
apply$mcDID$sp
public static double apply$mcDID$sp(int v1, double v2)
Deprecated.
-
apply$mcFID$sp
public static float apply$mcFID$sp(int v1, double v2)
Deprecated.
-
apply$mcIID$sp
public static int apply$mcIID$sp(int v1, double v2)
Deprecated.
-
apply$mcJID$sp
public static long apply$mcJID$sp(int v1, double v2)
Deprecated.
-
apply$mcVID$sp
public static void apply$mcVID$sp(int v1, double v2)
Deprecated.
-
apply$mcZII$sp
public static boolean apply$mcZII$sp(int v1, int v2)
Deprecated.
-
apply$mcDII$sp
public static double apply$mcDII$sp(int v1, int v2)
Deprecated.
-
apply$mcFII$sp
public static float apply$mcFII$sp(int v1, int v2)
Deprecated.
-
apply$mcIII$sp
public static int apply$mcIII$sp(int v1, int v2)
Deprecated.
-
apply$mcJII$sp
public static long apply$mcJII$sp(int v1, int v2)
Deprecated.
-
apply$mcVII$sp
public static void apply$mcVII$sp(int v1, int v2)
Deprecated.
-
apply$mcZIJ$sp
public static boolean apply$mcZIJ$sp(int v1, long v2)
Deprecated.
-
apply$mcDIJ$sp
public static double apply$mcDIJ$sp(int v1, long v2)
Deprecated.
-
apply$mcFIJ$sp
public static float apply$mcFIJ$sp(int v1, long v2)
Deprecated.
-
apply$mcIIJ$sp
public static int apply$mcIIJ$sp(int v1, long v2)
Deprecated.
-
apply$mcJIJ$sp
public static long apply$mcJIJ$sp(int v1, long v2)
Deprecated.
-
apply$mcVIJ$sp
public static void apply$mcVIJ$sp(int v1, long v2)
Deprecated.
-
apply$mcZJD$sp
public static boolean apply$mcZJD$sp(long v1, double v2)
Deprecated.
-
apply$mcDJD$sp
public static double apply$mcDJD$sp(long v1, double v2)
Deprecated.
-
apply$mcFJD$sp
public static float apply$mcFJD$sp(long v1, double v2)
Deprecated.
-
apply$mcIJD$sp
public static int apply$mcIJD$sp(long v1, double v2)
Deprecated.
-
apply$mcJJD$sp
public static long apply$mcJJD$sp(long v1, double v2)
Deprecated.
-
apply$mcVJD$sp
public static void apply$mcVJD$sp(long v1, double v2)
Deprecated.
-
apply$mcZJI$sp
public static boolean apply$mcZJI$sp(long v1, int v2)
Deprecated.
-
apply$mcDJI$sp
public static double apply$mcDJI$sp(long v1, int v2)
Deprecated.
-
apply$mcFJI$sp
public static float apply$mcFJI$sp(long v1, int v2)
Deprecated.
-
apply$mcIJI$sp
public static int apply$mcIJI$sp(long v1, int v2)
Deprecated.
-
apply$mcJJI$sp
public static long apply$mcJJI$sp(long v1, int v2)
Deprecated.
-
apply$mcVJI$sp
public static void apply$mcVJI$sp(long v1, int v2)
Deprecated.
-
apply$mcZJJ$sp
public static boolean apply$mcZJJ$sp(long v1, long v2)
Deprecated.
-
apply$mcDJJ$sp
public static double apply$mcDJJ$sp(long v1, long v2)
Deprecated.
-
apply$mcFJJ$sp
public static float apply$mcFJJ$sp(long v1, long v2)
Deprecated.
-
apply$mcIJJ$sp
public static int apply$mcIJJ$sp(long v1, long v2)
Deprecated.
-
apply$mcJJJ$sp
public static long apply$mcJJJ$sp(long v1, long v2)
Deprecated.
-
apply$mcVJJ$sp
public static void apply$mcVJJ$sp(long v1, long v2)
Deprecated.
-
body
public java.lang.Object body()
Deprecated.
-
headers
public scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers()
Deprecated.
-
attachments
public scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments()
Deprecated.
-
copy
public CamelMessage copy(java.lang.Object body, scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers)
Deprecated.
-
copy$default$1
public java.lang.Object copy$default$1()
Deprecated.
-
copy$default$2
public scala.collection.immutable.Map<java.lang.String,java.lang.Object> copy$default$2()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
headers
public scala.collection.immutable.Map<java.lang.String,java.lang.Object> headers(scala.collection.immutable.Set<java.lang.String> names)
Deprecated.Returns those headers from this message whose name is contained innames
.- Parameters:
names
- (undocumented)- Returns:
- (undocumented)
-
getHeaders
public java.util.Map<java.lang.String,java.lang.Object> getHeaders(java.util.Set<java.lang.String> names)
Deprecated.Java API: Returns those headers from this message whose name is contained innames
. The returned headers map is backed up by an immutable headers map. Any attempt to modify the returned map will throw an exception.- Parameters:
names
- (undocumented)- Returns:
- (undocumented)
-
getHeaders
public java.util.Map<java.lang.String,java.lang.Object> getHeaders()
Deprecated.Java API: Returns all headers from this message. The returned headers map is backed up by this message's immutable headers map. Any attempt to modify the returned map will throw an exception.- Returns:
- (undocumented)
-
withHeaders
public <A> CamelMessage withHeaders(java.util.Map<java.lang.String,A> headers)
Deprecated.Java API: Creates a new CamelMessage with givenheaders
. A copy of the headers map is made.- Parameters:
headers
- (undocumented)- Returns:
- (undocumented)
-
headerAs
public <T> scala.util.Try<T> headerAs(java.lang.String name, scala.reflect.ClassTag<T> t, org.apache.camel.CamelContext camelContext)
Deprecated.Returns the header by givenname
parameter in aTry
. The header is converted to typeT
, which is returned in aSuccess
. If an exception occurs during the conversion to the typeT
or when the header cannot be found, the exception is returned in aFailure
.The CamelContext is accessible in a
UntypedConsumerActor
andUntypedProducerActor
using thegetCamelContext
method, and is available on theCamelExtension
.- Parameters:
name
- (undocumented)t
- (undocumented)camelContext
- (undocumented)- Returns:
- (undocumented)
-
getHeaderAs
public <T> T getHeaderAs(java.lang.String name, java.lang.Class<T> clazz, org.apache.camel.CamelContext camelContext)
Deprecated.Java API: Returns the header by givenname
parameter. The header is converted to typeT
as defined by theclazz
parameter. An exception is thrown when the conversion to the typeT
fails or when the header cannot be found.The CamelContext is accessible in a
UntypedConsumerActor
andUntypedProducerActor
using thegetCamelContext
method, and is available on theCamelExtension
.- Parameters:
name
- (undocumented)clazz
- (undocumented)camelContext
- (undocumented)- Returns:
- (undocumented)
-
mapBody
public <A,B> CamelMessage mapBody(scala.Function1<A,B> transformer)
Deprecated.Returns a new CamelMessage with a transformed body using atransformer
function. This method will throw aClassCastException
if the body cannot be mapped to type A.- Parameters:
transformer
- (undocumented)- Returns:
- (undocumented)
-
mapBody
public <A,B> CamelMessage mapBody(Mapper<A,B> transformer)
Deprecated.Java API: Returns a new CamelMessage with a transformed body using atransformer
function. This method will throw aClassCastException
if the body cannot be mapped to type A.- Parameters:
transformer
- (undocumented)- Returns:
- (undocumented)
-
bodyAs
public <T> T bodyAs(scala.reflect.ClassTag<T> t, org.apache.camel.CamelContext camelContext)
Deprecated.Returns the body of the message converted to the typeT
. Conversion is done using Camel's type converter. The type converter is obtained from the CamelContext that is passed in. The CamelContext is accessible in aUntypedConsumerActor
andUntypedProducerActor
using thegetCamelContext
method, and is available on theCamelExtension
.- Parameters:
t
- (undocumented)camelContext
- (undocumented)- Returns:
- (undocumented)
-
getBodyAs
public <T> T getBodyAs(java.lang.Class<T> clazz, org.apache.camel.CamelContext camelContext)
Deprecated.Java API: Returns the body of the message converted to the type as given by theclazz
parameter. Conversion is done using Camel's type converter. The type converter is obtained from the CamelContext that is passed in.The CamelContext is accessible in a
UntypedConsumerActor
andUntypedProducerActor
using thegetCamelContext
method, and is available on theCamelExtension
.- Parameters:
clazz
- (undocumented)camelContext
- (undocumented)- Returns:
- (undocumented)
-
resetStreamCache
public void resetStreamCache()
Deprecated.Reset StreamCache body. Nothing is done if the body is not a StreamCache. See http://camel.apache.org/stream-caching.html
-
withBody
public <T> CamelMessage withBody(T body)
Deprecated.Java API: Returns a new CamelMessage with a new body, while keeping the same headers.- Parameters:
body
- (undocumented)- Returns:
- (undocumented)
-
withBodyAs
public <T> CamelMessage withBodyAs(scala.reflect.ClassTag<T> t, org.apache.camel.CamelContext camelContext)
Deprecated.Creates a CamelMessage with currentbody
converted to typeT
. The CamelContext is accessible in aUntypedConsumerActor
andUntypedProducerActor
using thegetCamelContext
method, and is available on theCamelExtension
.- Parameters:
t
- (undocumented)camelContext
- (undocumented)- Returns:
- (undocumented)
-
withBodyAs
public <T> CamelMessage withBodyAs(java.lang.Class<T> clazz, org.apache.camel.CamelContext camelContext)
Deprecated.Java API: Creates a CamelMessage with currentbody
converted to typeclazz
.The CamelContext is accessible in a
UntypedConsumerActor
andUntypedProducerActor
using thegetCamelContext
method, and is available on theCamelExtension
.- Parameters:
clazz
- (undocumented)camelContext
- (undocumented)- Returns:
- (undocumented)
-
attachments
public scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments(scala.collection.immutable.Set<java.lang.String> names)
Deprecated.Returns those attachments from this message whose name is contained innames
.- Parameters:
names
- (undocumented)- Returns:
- (undocumented)
-
getAttachments
public java.util.Map<java.lang.String,javax.activation.DataHandler> getAttachments(java.util.Set<java.lang.String> names)
Deprecated.Java API: Returns those attachments from this message whose name is contained innames
. The returned headers map is backed up by an immutable headers map. Any attempt to modify the returned map will throw an exception.- Parameters:
names
- (undocumented)- Returns:
- (undocumented)
-
getAttachments
public java.util.Map<java.lang.String,javax.activation.DataHandler> getAttachments()
Deprecated.Java API: Returns all attachments from this message. The returned attachments map is backed up by this message's immutable headers map. Any attempt to modify the returned map will throw an exception.- Returns:
- (undocumented)
-
withAttachments
public CamelMessage withAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
Deprecated.Java API: Creates a new CamelMessage with givenattachments
. A copy of the attachments map is made.- Parameters:
attachments
- (undocumented)- Returns:
- (undocumented)
-
withAttachments
public CamelMessage withAttachments(scala.collection.immutable.Map<java.lang.String,javax.activation.DataHandler> attachments)
Deprecated.SCALA API: Creates a new CamelMessage with givenattachments
.- Parameters:
attachments
- (undocumented)- Returns:
- (undocumented)
-
equals
public boolean equals(java.lang.Object that)
Deprecated.Indicates whether some other object is "equal to" this one.- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
- Parameters:
that
- (undocumented)- Returns:
- (undocumented)
-
hashCode
public int hashCode()
Deprecated.Returns a hash code value for the object.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- (undocumented)
-
productElement
public java.lang.Object productElement(int n)
Deprecated.Returns the n-th element of this product, 0-based.- Specified by:
productElement
in interfacescala.Product
- Parameters:
n
- (undocumented)- Returns:
- (undocumented)
-
productArity
public int productArity()
Deprecated.Returns the size of this product.- Specified by:
productArity
in interfacescala.Product
- Returns:
- (undocumented)
-
canEqual
public boolean canEqual(java.lang.Object that)
Deprecated.Indicates if some other object can be compared (based on type). This method should be called from every well-designed equals method that is open to be overridden in a subclass.- Specified by:
canEqual
in interfacescala.Equals
- Parameters:
that
- (undocumented)- Returns:
- (undocumented)
-
-