LibraryLink ToToggle FramesPrintFeedback

The Message Interface

An instance of org.apache.camel.Message type can represent any kind of message (In or Out). Figure 11.1 shows the inheritance hierarchy for the message type. You do not always need to implement a custom message type for a component. In many cases, the default implementation, DefaultMessage, is adequate.


Example 11.1 shows the definition of the org.apache.camel.Message interface.


The Message interface defines the following methods: