org.mule.module.cxf.feature
Class PrettyLoggingInInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
      extended by org.apache.cxf.interceptor.AbstractLoggingInterceptor
          extended by org.apache.cxf.interceptor.LoggingInInterceptor
              extended by org.mule.module.cxf.feature.PrettyLoggingInInterceptor
All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class PrettyLoggingInInterceptor
extends org.apache.cxf.interceptor.LoggingInInterceptor

Takes the log output from the standard CXF LoggingInterceptor, disassembles it, pretty-prints the XML payload, then puts it all back together again.


Field Summary
 
Fields inherited from class org.apache.cxf.interceptor.AbstractLoggingInterceptor
limit, prettyLogging, writer
 
Constructor Summary
PrettyLoggingInInterceptor()
           
PrettyLoggingInInterceptor(int lim)
           
PrettyLoggingInInterceptor(PrintWriter w)
           
PrettyLoggingInInterceptor(String phase)
           
 
Method Summary
protected  String transform(String originalLogString)
           
 
Methods inherited from class org.apache.cxf.interceptor.LoggingInInterceptor
getLogger, handleMessage, logging
 
Methods inherited from class org.apache.cxf.interceptor.AbstractLoggingInterceptor
getLimit, getPrintWriter, isPrettyLogging, log, setLimit, setOutputLocation, setPrettyLogging, setPrintWriter, writePayload
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyLoggingInInterceptor

public PrettyLoggingInInterceptor()

PrettyLoggingInInterceptor

public PrettyLoggingInInterceptor(String phase)

PrettyLoggingInInterceptor

public PrettyLoggingInInterceptor(int lim)

PrettyLoggingInInterceptor

public PrettyLoggingInInterceptor(PrintWriter w)
Method Detail

transform

protected String transform(String originalLogString)
Overrides:
transform in class org.apache.cxf.interceptor.AbstractLoggingInterceptor


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.