Packages

case class StreamMessage[A](body: A, headers: Map[String, Any] = Map.empty) extends Product with Serializable

A message received from or sent to a Camel endpoint.

body

Message body.

headers

Message headers.

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

Instance Constructors

  1. new StreamMessage(body: A, headers: Map[String, Any] = Map.empty)

    body

    Message body.

    headers

    Message headers.

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. val body: A
  6. def bodyAs[B](implicit streamContext: StreamContext, tag: ClassTag[B]): B

    Returns the body converted to type B using a Camel type converter.

    Returns the body converted to type B using a Camel type converter.

    Exceptions thrown

    org.apache.camel.TypeConversionException if type conversion fails.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def getBody: A

    Java API.

    Java API.

    Returns the message body.

  10. def getBodyAs[B](streamContext: StreamContext, clazz: Class[B]): B

    Java API.

    Java API.

    Returns the body converted to type B using a Camel type converter.

    Exceptions thrown

    org.apache.camel.TypeConversionException if type conversion fails.

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def getHeaderAs[B](name: String, streamContext: StreamContext, clazz: Class[B]): B

    Java API.

    Java API.

    Returns the name header value converted to type B using a Camel type converter.

    Exceptions thrown

    NoSuchElementException if the name header does not exist.

    org.apache.camel.TypeConversionException if type conversion fails.

  13. def getHeaderOptionAs[B](name: String, streamContext: StreamContext, clazz: Class[B]): Optional[B]

    Java API.

    Java API.

    Returns the name header value converted to type B using a Camel type converter if the name header is defined.

    Exceptions thrown

    org.apache.camel.TypeConversionException if type conversion fails.

  14. def getHeaders: Map[String, Any]

    Java API.

    Java API.

    Returns the message headers.

  15. def headerAs[B](name: String)(implicit streamContext: StreamContext, tag: ClassTag[B]): B

    Returns the name header value converted to type B using a Camel type converter.

    Returns the name header value converted to type B using a Camel type converter.

    Exceptions thrown

    NoSuchElementException if the name header does not exist.

    org.apache.camel.TypeConversionException if type conversion fails.

  16. def headerOptionAs[B](name: String)(implicit streamContext: StreamContext, tag: ClassTag[B]): Option[B]

    Returns the name header value converted to type B using a Camel type converter if the name header is defined.

    Returns the name header value converted to type B using a Camel type converter if the name header is defined.

    Exceptions thrown

    org.apache.camel.TypeConversionException if type conversion fails.

  17. val headers: Map[String, Any]
  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
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped