Returns the body of the message converted to the type T
.
Returns the body of the message converted to the type T
. 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 akka.camel.javaapi.UntypedConsumerActor and akka.camel.javaapi.UntypedProducerActor
using the getCamelContext
method, and is available on the akka.camel.CamelExtension.
Java API: Returns the body of the message converted to the type as given by the clazz
parameter.
Java API: Returns the body of the message converted to the type as given by the clazz
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 akka.camel.javaapi.UntypedConsumerActor and akka.camel.javaapi.UntypedProducerActor
using the getCamelContext
method, and is available on the akka.camel.CamelExtension.
Java API: Returns the header by given name
parameter.
Java API: Returns the header by given name
parameter. The header is converted to type T
as defined by the clazz
parameter.
An exception is thrown when the conversion to the type T
fails or when the header cannot be found.
The CamelContext is accessible in a akka.camel.javaapi.UntypedConsumerActor and akka.camel.javaapi.UntypedProducerActor
using the getCamelContext
method, and is available on the akka.camel.CamelExtension.
Java API: Returns all headers from this message.
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.
Java API: Returns those headers from this message whose name is contained in names
.
Java API: Returns those headers from this message whose name is contained in names
.
The returned headers map is backed up by an immutable headers map. Any attempt to modify
the returned map will throw an exception.
Returns the header by given name
parameter in a scala.util.Try.
Returns the header by given name
parameter in a scala.util.Try. The header is converted to type T
, which is returned
in a scala.util.Success. If an exception occurs during the conversion to the type T
or when the header cannot be found,
the exception is returned in a scala.util.Failure.
The CamelContext is accessible in a akka.camel.javaapi.UntypedConsumerActor and akka.camel.javaapi.UntypedProducerActor
using the getCamelContext
method, and is available on the akka.camel.CamelExtension.
Returns those headers from this message whose name is contained in names
.
Returns those headers from this message whose name is contained in names
.
Java API: Returns a new CamelMessage with a transformed body using a transformer
function.
Java API: Returns a new CamelMessage with a transformed body using a transformer
function.
This method will throw a java.lang.ClassCastException if the body cannot be mapped to type A.
Returns a new CamelMessage with a transformed body using a transformer
function.
Returns a new CamelMessage with a transformed body using a transformer
function.
This method will throw a java.lang.ClassCastException if the body cannot be mapped to type A.
Reset StreamCache body.
Reset StreamCache body. Nothing is done if the body is not a StreamCache. See http://camel.apache.org/stream-caching.html
Java API: Returns a new CamelMessage with a new body, while keeping the same headers.
Java API: Creates a CamelMessage with current body
converted to type clazz
.
Java API: Creates a CamelMessage with current body
converted to type clazz
.
The CamelContext is accessible in a akka.camel.javaapi.UntypedConsumerActor and akka.camel.javaapi.UntypedProducerActor
using the getCamelContext
method, and is available on the akka.camel.CamelExtension.
Creates a CamelMessage with current body
converted to type T
.
Creates a CamelMessage with current body
converted to type T
.
The CamelContext is accessible in a akka.camel.javaapi.UntypedConsumerActor and akka.camel.javaapi.UntypedProducerActor
using the getCamelContext
method, and is available on the akka.camel.CamelExtension.
Java API: Creates a new CamelMessage with given headers
.
Java API: Creates a new CamelMessage with given headers
. A copy of the headers map is made.
An immutable representation of a Camel message.