Class CamelMessage<T>

  • All Implemented Interfaces:
    Message<T>

    public class CamelMessage<T>
    extends Object
    implements Message<T>
    • Constructor Detail

      • CamelMessage

        public CamelMessage​(org.apache.camel.Exchange exchange)
    • Method Detail

      • getPayload

        public T getPayload()
        Specified by:
        getPayload in interface Message<T>
        Returns:
        The payload for this message.
      • getPayload

        public T getPayload​(Class<T> clazz)
      • getExchange

        public org.apache.camel.Exchange getExchange()
      • getMetadata

        public Metadata getMetadata()
        Specified by:
        getMetadata in interface Message<T>
        Returns:
        The set of metadata attached to this message, potentially empty.