akka.camel

CamelMessage

case class CamelMessage(body: Any, headers: Map[String, Any]) extends Product with Serializable

An immutable representation of a Camel message.

Source
CamelMessage.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CamelMessage
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CamelMessage(body: Any, headers: Map[String, Any])

  2. new CamelMessage(body: Any, headers: Map[String, Any])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from CamelMessage to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (CamelMessage, B)

    Implicit information
    This member is added by an implicit conversion from CamelMessage to ArrowAssoc[CamelMessage] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. val body: Any

  10. def bodyAs[T](implicit t: ClassTag[T], camelContext: CamelContext): T

    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.

  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def ensuring(cond: (CamelMessage) ⇒ Boolean, msg: ⇒ Any): CamelMessage

    Implicit information
    This member is added by an implicit conversion from CamelMessage to Ensuring[CamelMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (CamelMessage) ⇒ Boolean): CamelMessage

    Implicit information
    This member is added by an implicit conversion from CamelMessage to Ensuring[CamelMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): CamelMessage

    Implicit information
    This member is added by an implicit conversion from CamelMessage to Ensuring[CamelMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): CamelMessage

    Implicit information
    This member is added by an implicit conversion from CamelMessage to Ensuring[CamelMessage] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from CamelMessage to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. def getBodyAs[T](clazz: Class[T], camelContext: CamelContext): T

    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.

  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def getHeaderAs[T](name: String, clazz: Class[T], camelContext: CamelContext): T

    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.

  22. def getHeaders: Map[String, Any]

    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.

  23. def getHeaders(names: Set[String]): Map[String, Any]

    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.

  24. def headerAs[T](name: String)(implicit t: ClassTag[T], camelContext: CamelContext): Try[T]

    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.

  25. def headers(names: Set[String]): Map[String, Any]

    Returns those headers from this message whose name is contained in names.

    Returns those headers from this message whose name is contained in names.

  26. val headers: Map[String, Any]

  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def mapBody[A, B](transformer: Mapper[A, B]): CamelMessage

    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.

  29. def mapBody[A, B](transformer: (A) ⇒ B): CamelMessage

    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.

  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. def resetStreamCache(): Unit

    Reset StreamCache body.

    Reset StreamCache body. Nothing is done if the body is not a StreamCache. See http://camel.apache.org/stream-caching.html

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    CamelMessage → AnyRef → Any
  36. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def withBody[T](body: T): CamelMessage

    Java API: Returns a new CamelMessage with a new body, while keeping the same headers.

  40. def withBodyAs[T](clazz: Class[T])(implicit camelContext: CamelContext): CamelMessage

    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.

  41. def withBodyAs[T](implicit t: ClassTag[T], camelContext: CamelContext): CamelMessage

    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.

  42. def withHeaders[A](headers: Map[String, A]): CamelMessage

    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.

  43. def [B](y: B): (CamelMessage, B)

    Implicit information
    This member is added by an implicit conversion from CamelMessage to ArrowAssoc[CamelMessage] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from CamelMessage to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (camelMessage: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from CamelMessage to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (camelMessage: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: CamelMessage

    Implicit information
    This member is added by an implicit conversion from CamelMessage to ArrowAssoc[CamelMessage] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (camelMessage: ArrowAssoc[CamelMessage]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: CamelMessage

    Implicit information
    This member is added by an implicit conversion from CamelMessage to Ensuring[CamelMessage] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (camelMessage: Ensuring[CamelMessage]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from CamelMessage to StringAdd

Inherited by implicit conversion any2stringfmt from CamelMessage to StringFormat

Inherited by implicit conversion any2ArrowAssoc from CamelMessage to ArrowAssoc[CamelMessage]

Inherited by implicit conversion any2Ensuring from CamelMessage to Ensuring[CamelMessage]

Ungrouped