org.apache.camel.processor.interceptor
Class DefaultTraceEventMessage

java.lang.Object
  extended by org.apache.camel.processor.interceptor.DefaultTraceEventMessage
All Implemented Interfaces:
Serializable, TraceEventMessage

public final class DefaultTraceEventMessage
extends Object
implements Serializable, TraceEventMessage

Default TraceEventMessage.

See Also:
Serialized Form

Constructor Summary
DefaultTraceEventMessage(Date timestamp, ProcessorDefinition<?> toNode, Exchange exchange)
          Creates a DefaultTraceEventMessage based on the given node it was traced while processing the current Exchange
 
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 getOutHeaders()
           
 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.

 void setBody(String body)
           
 void setBodyType(String bodyType)
           
 void setCausedByException(String causedByException)
           
 void setExchangeId(String exchangeId)
           
 void setExchangePattern(String exchangePattern)
           
 void setFromEndpointUri(String fromEndpointUri)
           
 void setHeaders(String headers)
           
 void setOutBody(String outBody)
           
 void setOutBodyType(String outBodyType)
           
 void setOutHeaders(String outHeaders)
           
 void setPreviousNode(String previousNode)
           
 void setProperties(String properties)
           
 void setShortExchangeId(String shortExchangeId)
           
 void setTimestamp(Date timestamp)
           
 void setToNode(String toNode)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTraceEventMessage

public DefaultTraceEventMessage(Date timestamp,
                                ProcessorDefinition<?> toNode,
                                Exchange exchange)
Creates a DefaultTraceEventMessage based on the given node it was traced while processing the current Exchange

Parameters:
toNode - the node where this trace is intercepted
exchange - the current Exchange
Method Detail

getTimestamp

public Date getTimestamp()
Description copied from interface: TraceEventMessage
Gets the timestamp when the interception occurred

Specified by:
getTimestamp in interface TraceEventMessage

getFromEndpointUri

public String getFromEndpointUri()
Description copied from interface: TraceEventMessage
Uri of the endpoint that started the Exchange currently being traced.

Specified by:
getFromEndpointUri in interface TraceEventMessage

getPreviousNode

public String getPreviousNode()
Description copied from interface: TraceEventMessage
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

Specified by:
getPreviousNode in interface TraceEventMessage

getToNode

public String getToNode()
Description copied from interface: TraceEventMessage
Gets the current node that just have been intercepted and processed

Is never null.

Specified by:
getToNode in interface TraceEventMessage

getExchangeId

public String getExchangeId()
Specified by:
getExchangeId in interface TraceEventMessage

getShortExchangeId

public String getShortExchangeId()
Description copied from interface: TraceEventMessage
Gets the exchange id without the leading hostname

Specified by:
getShortExchangeId in interface TraceEventMessage

getExchangePattern

public String getExchangePattern()
Specified by:
getExchangePattern in interface TraceEventMessage

getProperties

public String getProperties()
Specified by:
getProperties in interface TraceEventMessage

getHeaders

public String getHeaders()
Specified by:
getHeaders in interface TraceEventMessage

getBody

public String getBody()
Specified by:
getBody in interface TraceEventMessage

getBodyType

public String getBodyType()
Specified by:
getBodyType in interface TraceEventMessage

getOutBody

public String getOutBody()
Specified by:
getOutBody in interface TraceEventMessage

getOutBodyType

public String getOutBodyType()
Specified by:
getOutBodyType in interface TraceEventMessage

getOutHeaders

public String getOutHeaders()

setOutHeaders

public void setOutHeaders(String outHeaders)

getCausedByException

public String getCausedByException()
Description copied from interface: TraceEventMessage
Gets the caused by exception (ie Exchange#getException().

Specified by:
getCausedByException in interface TraceEventMessage

setTimestamp

public void setTimestamp(Date timestamp)

setFromEndpointUri

public void setFromEndpointUri(String fromEndpointUri)

setPreviousNode

public void setPreviousNode(String previousNode)

setToNode

public void setToNode(String toNode)

setExchangeId

public void setExchangeId(String exchangeId)

setShortExchangeId

public void setShortExchangeId(String shortExchangeId)

setExchangePattern

public void setExchangePattern(String exchangePattern)

setProperties

public void setProperties(String properties)

setHeaders

public void setHeaders(String headers)

setBody

public void setBody(String body)

setBodyType

public void setBodyType(String bodyType)

setOutBody

public void setOutBody(String outBody)

setOutBodyType

public void setOutBodyType(String outBodyType)

setCausedByException

public void setCausedByException(String causedByException)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.