io.xtech.babel.camel.model

CamelMessage

class CamelMessage[I] extends Message[I]

An immutable wrapper for a camel message.

I

the type of the message body.

Linear Supertypes
Message[I], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CamelMessage
  2. Message
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CamelMessage(message: Message)

    message

    the original camel message.

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. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def body: Option[I]

    Definition Classes
    CamelMessage → Message
  8. def bodyAs[A](implicit arg0: ClassTag[A]): Option[A]

    Definition Classes
    CamelMessage → Message
  9. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def exchange: Exchange

    returns

    the Camel Exchange which is represented by this CamelMessage.

  13. def exchangeException: Exception

    returns

    the exception contained in the wrapped Camel Exchange.

  14. def exchangePattern: ExchangePattern

    returns

    return the wrapped Camel Exchange pattern (MEP)

  15. def exchangeProperties: Map[String, Any]

    returns

    an immutable Map of the properties of the Camel Exchange which is represented by this CamelMessage.

  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def headers: Map[String, Any]

    Definition Classes
    CamelMessage → Message
  20. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withBody[O](f: (I) ⇒ O)(implicit arg0: ClassTag[O]): Message[O]

    Definition Classes
    CamelMessage → Message
  30. def withExchangeException(e: Exception): CamelMessage[I]

    Override the exception of the wrapped Camel Exchange.

    Override the exception of the wrapped Camel Exchange.

    e

    to be added to the Camel Exchange

    returns

    a new Message with the exception

  31. def withExchangePattern(mep: ExchangePattern): CamelMessage[I]

    Set or overrides the wrapped Camel Exchange pattern (MEP)

    Set or overrides the wrapped Camel Exchange pattern (MEP)

    mep

    new exchange pattern of the wrapped Camel Exchange

    returns

    a new Message with the Exchange Pattern

  32. def withExchangeProperties(f: (Map[String, Any]) ⇒ Map[String, Any]): CamelMessage[I]

    Changes the Camel Exchange properties with a function.

    Changes the Camel Exchange properties with a function.

    f

    a function processing the properties of the wrapped Camel Exchange.

    returns

    a new Message with modified properties.

  33. def withExchangeProperty(key: String, value: Any): CamelMessage[I]

    Creates or updates a property in the wrapped Camel Exchange.

    Creates or updates a property in the wrapped Camel Exchange.

    key

    the key.

    value

    the value.

    returns

    a new Message with the new exchange property.

  34. def withHeader(key: String, value: Any): Message[I]

    Definition Classes
    CamelMessage → Message
  35. def withHeaders(f: (Map[String, Any]) ⇒ Map[String, Any]): Message[I]

    Definition Classes
    CamelMessage → Message
  36. def withOptionalBody[O](f: (Option[I]) ⇒ Option[O])(implicit arg0: ClassTag[O]): Message[O]

    Definition Classes
    CamelMessage → Message

Inherited from Message[I]

Inherited from AnyRef

Inherited from Any

Ungrouped