Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.interceptor
Class LoggingInInterceptor

    java.lang.Object
      org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
          org.apache.cxf.interceptor.AbstractLoggingInterceptor
              org.apache.cxf.interceptor.LoggingInInterceptor

All Implemented Interfaces:
  Interceptor<Message>, PhaseInterceptor<Message>

    public class LoggingInInterceptor

extends AbstractLoggingInterceptor

A simple logging handler which outputs the bytes of the message to the Logger.

Field Summary

Fields inherited from class org.apache.cxf.interceptor.AbstractLoggingInterceptor
`BINARY_CONTENT_MESSAGE, limit, prettyLogging, threshold, writer`

Constructor Summary
`LoggingInInterceptor()`
`LoggingInInterceptor(int lim)`
`LoggingInInterceptor(PrintWriter w)`
`LoggingInInterceptor(String phase)`
`LoggingInInterceptor(String id, int lim)`
`LoggingInInterceptor(String id, PrintWriter w)`
`LoggingInInterceptor(String id, String phase)`

Method Summary
`protected String` | `formatLoggingMessage(LoggingMessage loggingMessage)`
`protected Logger` | `getLogger()`
`void` | `handleMessage(Message message)` Intercepts a message.
`protected void` | `logging(Logger logger, Message message)`

Methods inherited from class org.apache.cxf.interceptor.AbstractLoggingInterceptor
`getInMemThreshold, getLimit, getPrintWriter, isBinaryContent, isPrettyLogging, isShowBinaryContent, log, setInMemThreshold, setLimit, setOutputLocation, setPrettyLogging, setPrintWriter, setShowBinaryContent, transform, writePayload, 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

### LoggingInInterceptor

    public LoggingInInterceptor()

### LoggingInInterceptor

    public LoggingInInterceptor(String phase)

### LoggingInInterceptor

    public LoggingInInterceptor(String id,
                                String phase)

### LoggingInInterceptor

    public LoggingInInterceptor(int lim)

### LoggingInInterceptor

    public LoggingInInterceptor(String id,
                                int lim)

### LoggingInInterceptor

    public LoggingInInterceptor(PrintWriter w)

### LoggingInInterceptor

    public LoggingInInterceptor(String id,
                                PrintWriter w)

Method Detail

### 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`

### logging

    protected void logging(Logger logger,
                           Message message)
                    throws Fault

  Throws:
    `Fault`

### formatLoggingMessage

    protected String formatLoggingMessage(LoggingMessage loggingMessage)

### getLogger

    protected Logger getLogger()

  Specified by:
    `getLogger` in class `AbstractLoggingInterceptor`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF