org.apache.camel.processor.interceptor
Class TraceFormatter
java.lang.Object
org.apache.camel.processor.interceptor.TraceFormatter
public class TraceFormatter
- extends Object
- Version:
- $Revision: 2230 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraceFormatter
public TraceFormatter()
format
public Object format(TraceInterceptor interceptor,
Exchange exchange)
isShowBody
public boolean isShowBody()
setShowBody
public void setShowBody(boolean showBody)
isShowBodyType
public boolean isShowBodyType()
setShowBodyType
public void setShowBodyType(boolean showBodyType)
setShowOutBody
public void setShowOutBody(boolean showOutBody)
isShowOutBody
public boolean isShowOutBody()
setShowOutBodyType
public void setShowOutBodyType(boolean showOutBodyType)
isShowOutBodyType
public boolean isShowOutBodyType()
isShowBreadCrumb
public boolean isShowBreadCrumb()
setShowBreadCrumb
public void setShowBreadCrumb(boolean showBreadCrumb)
isShowExchangeId
public boolean isShowExchangeId()
setShowExchangeId
public void setShowExchangeId(boolean showExchangeId)
isShowHeaders
public boolean isShowHeaders()
setShowHeaders
public void setShowHeaders(boolean showHeaders)
isShowProperties
public boolean isShowProperties()
setShowProperties
public void setShowProperties(boolean showProperties)
isShowNode
public boolean isShowNode()
setShowNode
public void setShowNode(boolean showNode)
isShowExchangePattern
public boolean isShowExchangePattern()
setShowExchangePattern
public void setShowExchangePattern(boolean showExchangePattern)
isShowException
public boolean isShowException()
setShowException
public void setShowException(boolean showException)
getBreadCrumbLength
public int getBreadCrumbLength()
setBreadCrumbLength
public void setBreadCrumbLength(int breadCrumbLength)
isShowShortExchangeId
public boolean isShowShortExchangeId()
setShowShortExchangeId
public void setShowShortExchangeId(boolean showShortExchangeId)
getNodeLength
public int getNodeLength()
setNodeLength
public void setNodeLength(int nodeLength)
getBreadCrumbID
protected Object getBreadCrumbID(Exchange exchange)
getBodyAsString
protected Object getBodyAsString(Message in)
getBodyTypeAsString
protected Object getBodyTypeAsString(Message message)
getNodeMessage
protected String getNodeMessage(TraceInterceptor interceptor)
getExchangeAndNode
protected String getExchangeAndNode(TraceInterceptor interceptor,
Exchange exchange)
- Returns the exchange id and node, ordered based on whether this was a trace of
an exchange coming out of or into a processing step. For example,
transform(body) -> ID-mojo/39713-1225468755256/2-0
or
ID-mojo/39713-1225468755256/2-0 -> transform(body)
Copyright © 2009 IONA Open Source Community. All Rights Reserved.