org.apache.cxf.interceptor
Class LoggingOutInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor
      extended by org.apache.cxf.interceptor.LoggingOutInterceptor
All Implemented Interfaces:
Interceptor, PhaseInterceptor

public class LoggingOutInterceptor
extends AbstractPhaseInterceptor


Constructor Summary
LoggingOutInterceptor()
           
LoggingOutInterceptor(int lim)
           
LoggingOutInterceptor(java.io.PrintWriter w)
           
LoggingOutInterceptor(java.lang.String phase)
           
 
Method Summary
 int getLimit()
           
 void handleMessage(Message message)
          Intercepts a message.
 void setLimit(int lim)
           
protected  java.lang.String transform(java.lang.String originalLogString)
          Transform the string before display.
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAfter, getBefore, getId, getPhase, handleFault, isGET, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingOutInterceptor

public LoggingOutInterceptor(java.lang.String phase)

LoggingOutInterceptor

public LoggingOutInterceptor()

LoggingOutInterceptor

public LoggingOutInterceptor(int lim)

LoggingOutInterceptor

public LoggingOutInterceptor(java.io.PrintWriter w)
Method Detail

setLimit

public void setLimit(int lim)

getLimit

public int getLimit()

handleMessage

public void handleMessage(Message message)
                   throws Fault
Description copied from interface: Interceptor
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.

Throws:
Fault

transform

protected java.lang.String transform(java.lang.String originalLogString)
Transform the string before display. The implementation in this class does nothing. Override this method if you want to change the contents of the logged message before it is delivered to the output. For example, you can use this to masking out sensitive information.

Parameters:
originalLogString - the raw log message.
Returns:
transformed data


Apache CXF