Returns those attachments from this message whose name is contained in names
.
Returns those attachments from this message whose name is contained in names
.
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.
Indicates if some other object can be compared (based on type).
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.
Indicates whether some other object is "equal to" this one.
Indicates whether some other object is "equal to" this one.
Java API: Returns all attachments from this message.
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.
Java API: Returns those attachments from this message whose name is contained in names
.
Java API: Returns those attachments 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.
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 a hash code value for the object.
Returns a hash code value for the object.
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.
Returns the size of this product.
Returns the size of this product.
Returns the n-th element of this product, 0-based.
Returns the n-th element of this product, 0-based.
Reset StreamCache body.
Reset StreamCache body. Nothing is done if the body is not a StreamCache. See http://camel.apache.org/stream-caching.html
SCALA API: Creates a new CamelMessage with given attachments
.
SCALA API: Creates a new CamelMessage with given attachments
.
Java API: Creates a new CamelMessage with given attachments
.
Java API: Creates a new CamelMessage with given attachments
. A copy of the attachments map is made.
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.
(Since version 2.5.0) Akka Camel is deprecated in favour of 'Alpakka', the Akka Streams based collection of integrations to various endpoints (including Camel).