org.apache.camel.processor.interceptor
Interface TraceEventMessage

All Known Implementing Classes:
DefaultTraceEventMessage, JpaTraceEventMessage

public interface TraceEventMessage

A trace event message that contains decomposed information about the traced Exchange at the point of interception. The information is stored as snapshot copies using String types.

Notice not all implementations may provide direct access to the traced Exchange using the getTracedExchange() method, and thus this method may return null. For example the JPA implementation will return null.


Method Summary
 String getBody()
           
 String getBodyType()
           
 String getCausedByException()
          Gets the caused by exception (ie Exchange#getException().
 String getExchangeId()
           
 String getExchangePattern()
           
 String getFromEndpointUri()
          Uri of the endpoint that started the Exchange currently being traced.
 String getHeaders()
           
 String getOutBody()
           
 String getOutBodyType()
           
 String getPreviousNode()
          Gets the previous node.
 String getProperties()
           
 String getShortExchangeId()
          Gets the exchange id without the leading hostname
 Date getTimestamp()
          Gets the timestamp when the interception occurred
 String getToNode()
          Gets the current node that just have been intercepted and processed

Is never null.

 Exchange getTracedExchange()
          Gets the traced Exchange.
 

Method Detail

getTimestamp

Date getTimestamp()
Gets the timestamp when the interception occurred


getFromEndpointUri

String getFromEndpointUri()
Uri of the endpoint that started the Exchange currently being traced.


getPreviousNode

String getPreviousNode()
Gets the previous node.

Will return null if this is the first node, then you can use the from endpoint uri instead to indicate the start


getToNode

String getToNode()
Gets the current node that just have been intercepted and processed

Is never null.


getExchangeId

String getExchangeId()

getShortExchangeId

String getShortExchangeId()
Gets the exchange id without the leading hostname


getExchangePattern

String getExchangePattern()

getProperties

String getProperties()

getHeaders

String getHeaders()

getBody

String getBody()

getBodyType

String getBodyType()

getOutBody

String getOutBody()

getOutBodyType

String getOutBodyType()

getCausedByException

String getCausedByException()
Gets the caused by exception (ie Exchange#getException().


getTracedExchange

Exchange getTracedExchange()
Gets the traced Exchange.

Not all implementations may provide direct access to the traced Exchange and thus this method may return null. For example the JPA implementation will return null.

Returns:
the traced Exchange, however it can be null in some implementations.


Apache CAMEL