akka.camel

Message

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

An immutable representation of a Camel message.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Message
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

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

    Creates a Message with given body and headers map.

    Creates a Message with given body and headers map. A copy of the headers map is made.

    Java API

  2. new Message (body: Any)

    Creates a Message with given body and empty headers map.

  3. new Message (body: Any, headers: Map[String, Any])

Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. def addHeader (name: String, value: Any): Message

    Creates a new Message with the given header, represented by name and value added to the existing headers.

    Creates a new Message with the given header, represented by name and value added to the existing headers.

    Java API

  7. def addHeader (header: (String, Any)): Message

    Creates a new Message with the given header added to the current headers.

  8. def addHeaders (headers: Map[String, Any]): Message

    Creates a new Message with given headers added to the current headers.

    Creates a new Message with given headers added to the current headers. A copy of the headers map is made.

    Java API

  9. def addHeaders (headers: Map[String, Any]): Message

    Creates a new Message with given headers added to the current headers.

  10. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  11. val body : Any

  12. def bodyAs [T] (implicit m: Manifest[T]): 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 managed by CamelContextManager. Applications have to ensure proper initialization of CamelContextManager.

    See also

    CamelContextManager.

  13. def canEqual (arg0: Any): Boolean

    Definition Classes
    Message → Equals
  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

    Definition Classes
    Message → Equals → AnyRef → Any
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def getBodyAs [T] (clazz: Class[T]): T

    Returns the body of the message converted to the type as given by the clazz parameter.

    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 managed by CamelContextManager. Applications have to ensure proper initialization of CamelContextManager.

    Java API

    See also

    CamelContextManager.

  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. def getHeader (name: String): Any

    Returns the header with given name.

    Returns the header with given name. Throws NoSuchElementException if the header doesn't exist.

    Java API

  21. def getHeaderAs [T] (name: String, clazz: Class[T]): T

    Returns the header with given name converted to type as given by the clazz parameter.

    Returns the header with given name converted to type as given by the clazz parameter. Throws NoSuchElementException if the header doesn't exist.

    Java API

  22. def getHeaders : Map[String, Any]

    Returns all headers from this message.

    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

  23. def getHeaders (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. 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

  24. def hashCode (): Int

    Definition Classes
    Message → AnyRef → Any
  25. def header (name: String): Any

    Returns the header with given name.

    Returns the header with given name. Throws NoSuchElementException if the header doesn't exist.

  26. def headerAs [T] (name: String)(implicit m: Manifest[T]): T

    Returns the header with given name converted to type T.

    Returns the header with given name converted to type T. Throws NoSuchElementException if the header doesn't exist.

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

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

  28. val headers : Map[String, Any]

  29. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  30. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  33. def productArity : Int

    Definition Classes
    Message → Product
  34. def productElement (arg0: Int): Any

    Definition Classes
    Message → Product
  35. def productIterator : Iterator[Any]

    Definition Classes
    Product
  36. def productPrefix : String

    Definition Classes
    Message → Product
  37. def removeHeader (headerName: String): Message

    Creates a new Message where the header with given headerName is removed from the existing headers.

  38. def setBody (body: Any): Message

    Creates a Message with a given body.

  39. def setBodyAs [T] (clazz: Class[T]): Message

    Creates a Message with current body converted to type clazz.

    Creates a Message with current body converted to type clazz.

    Java API

  40. def setBodyAs [T] (implicit m: Manifest[T]): Message

    Creates a Message with current body converted to type T.

  41. def setHeaders (headers: Map[String, Any]): Message

    Creates a new Message with given headers.

    Creates a new Message with given headers. A copy of the headers map is made.

    Java API

  42. def setHeaders (headers: Map[String, Any]): Message

    Creates a new Message with given headers.

  43. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  44. def toString (): String

    Definition Classes
    Message → AnyRef → Any
  45. def transformBody [A] (transformer: Function[A, Any]): Message

    Creates a Message with a transformed body using a transformer function.

    Creates a Message with a transformed body using a transformer function.

    Java API

  46. def transformBody [A] (transformer: (A) ⇒ Any): Message

    Creates a Message with a transformed body using a transformer function.

  47. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any