Class AbstractLoggingInterceptor

java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
org.apache.cxf.interceptor.AbstractLoggingInterceptor
All Implemented Interfaces:
Interceptor<Message>, PhaseInterceptor<Message>
Direct Known Subclasses:
LoggingInInterceptor, LoggingOutInterceptor

@Deprecated public abstract class AbstractLoggingInterceptor extends AbstractPhaseInterceptor<Message>
Deprecated.
A simple logging handler which outputs the bytes of the message to the Logger.
  • Field Details

    • DEFAULT_LIMIT

      public static final int DEFAULT_LIMIT
      Deprecated.
      See Also:
    • BINARY_CONTENT_MESSAGE

      protected static final String BINARY_CONTENT_MESSAGE
      Deprecated.
      See Also:
    • MULTIPART_CONTENT_MESSAGE

      protected static final String MULTIPART_CONTENT_MESSAGE
      Deprecated.
      See Also:
    • limit

      protected int limit
      Deprecated.
    • threshold

      protected long threshold
      Deprecated.
    • writer

      protected PrintWriter writer
      Deprecated.
    • prettyLogging

      protected boolean prettyLogging
      Deprecated.
  • Constructor Details

    • AbstractLoggingInterceptor

      public AbstractLoggingInterceptor(String phase)
      Deprecated.
    • AbstractLoggingInterceptor

      public AbstractLoggingInterceptor(String id, String phase)
      Deprecated.
  • Method Details

    • isLoggingDisabledNow

      protected static boolean isLoggingDisabledNow(Message message)
      Deprecated.
    • getLogger

      protected abstract Logger getLogger()
      Deprecated.
    • setOutputLocation

      public void setOutputLocation(String s)
      Deprecated.
    • setPrintWriter

      public void setPrintWriter(PrintWriter w)
      Deprecated.
    • getPrintWriter

      public PrintWriter getPrintWriter()
      Deprecated.
    • setLimit

      public void setLimit(int lim)
      Deprecated.
    • getLimit

      public int getLimit()
      Deprecated.
    • setPrettyLogging

      public void setPrettyLogging(boolean flag)
      Deprecated.
    • isPrettyLogging

      public boolean isPrettyLogging()
      Deprecated.
    • setInMemThreshold

      public void setInMemThreshold(long t)
      Deprecated.
    • getInMemThreshold

      public long getInMemThreshold()
      Deprecated.
    • writePayload

      protected void writePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType, boolean truncated) throws Exception
      Deprecated.
      Throws:
      Exception
    • writePayload

      protected void writePayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception
      Deprecated.
      Throws:
      Exception
    • writePrettyPayload

      protected void writePrettyPayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception
      Deprecated.
      Throws:
      Exception
    • transform

      protected String transform(String originalLogString)
      Deprecated.
      Transform the string before display. The implementation in this class does nothing. Override this method if you wish to change the contents of the logged message before it is delivered to the output. For example, you can use this to mask out sensitive information.
      Parameters:
      originalLogString - the raw log message.
      Returns:
      transformed data
    • log

      protected void log(Logger logger, String message)
      Deprecated.
    • setShowBinaryContent

      public void setShowBinaryContent(boolean showBinaryContent)
      Deprecated.
    • isShowBinaryContent

      public boolean isShowBinaryContent()
      Deprecated.
    • isBinaryContent

      protected boolean isBinaryContent(String contentType)
      Deprecated.
    • isShowMultipartContent

      public boolean isShowMultipartContent()
      Deprecated.
    • setShowMultipartContent

      public void setShowMultipartContent(boolean showMultipartContent)
      Deprecated.
    • isMultipartContent

      protected boolean isMultipartContent(String contentType)
      Deprecated.
    • getBinaryContentMediaTypes

      public List<String> getBinaryContentMediaTypes()
      Deprecated.
    • setBinaryContentMediaTypes

      public void setBinaryContentMediaTypes(List<String> binaryContentMediaTypes)
      Deprecated.