io.xtech.babel.camel.model

CamelMessage

Related Doc: package model

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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  10. def exchange: Exchange

    returns

    the Camel Exchange which is represented by this CamelMessage.

  11. def exchangeException: Exception

    returns

    the exception contained in the wrapped Camel Exchange.

  12. def exchangePattern: ExchangePattern

    returns

    return the wrapped Camel Exchange pattern (MEP)

  13. def exchangeProperties: Map[String, Any]

    returns

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

  14. def finalize(): Unit

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

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

    Definition Classes
    CamelMessage → Message
  28. 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

  29. 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

  30. 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.

  31. 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.

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

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

    Definition Classes
    CamelMessage → Message
  34. 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