Class AbstractLoggingInterceptor

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

public abstract class AbstractLoggingInterceptor extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
  • Field Details

    • DEFAULT_LIMIT

      public static final int DEFAULT_LIMIT
      See Also:
    • DEFAULT_THRESHOLD

      public static final int DEFAULT_THRESHOLD
      See Also:
    • CONTENT_SUPPRESSED

      public static final String CONTENT_SUPPRESSED
      See Also:
    • LIVE_LOGGING_PROP

      protected static final String LIVE_LOGGING_PROP
      See Also:
    • limit

      protected int limit
    • threshold

      protected long threshold
    • logBinary

      protected boolean logBinary
    • logMultipart

      protected boolean logMultipart
    • sender

      protected LogEventSender sender
    • eventMapper

      protected final DefaultLogEventMapper eventMapper
    • maskSensitiveHelper

      protected final MaskSensitiveHelper maskSensitiveHelper
    • sensitiveProtocolHeaderNames

      protected Set<String> sensitiveProtocolHeaderNames
  • Constructor Details

    • AbstractLoggingInterceptor

      public AbstractLoggingInterceptor(String phase, LogEventSender sender)
  • Method Details

    • isLoggingDisabledNow

      protected static boolean isLoggingDisabledNow(org.apache.cxf.message.Message message) throws org.apache.cxf.interceptor.Fault
      Throws:
      org.apache.cxf.interceptor.Fault
    • addBinaryContentMediaTypes

      public void addBinaryContentMediaTypes(String mediaTypes)
    • setLimit

      public void setLimit(int lim)
    • getLimit

      public int getLimit()
    • setInMemThreshold

      public void setInMemThreshold(long t)
    • getInMemThreshold

      public long getInMemThreshold()
    • setSensitiveElementNames

      public void setSensitiveElementNames(Set<String> sensitiveElementNames)
    • addSensitiveElementNames

      public void addSensitiveElementNames(Set<String> sensitiveElementNames)
    • setSensitiveProtocolHeaderNames

      public void setSensitiveProtocolHeaderNames(Set<String> protocolHeaderNames)
    • addSensitiveProtocolHeaderNames

      public void addSensitiveProtocolHeaderNames(Set<String> protocolHeaderNames)
    • setPrettyLogging

      public void setPrettyLogging(boolean prettyLogging)
    • shouldLogContent

      protected boolean shouldLogContent(LogEvent event)
    • setLogBinary

      public void setLogBinary(boolean logBinary)
    • setLogMultipart

      public void setLogMultipart(boolean logMultipart)
    • createExchangeId

      public void createExchangeId(org.apache.cxf.message.Message message)
    • transform

      protected String transform(org.apache.cxf.message.Message message, String originalLogString)
    • maskSensitiveElements

      protected String maskSensitiveElements(org.apache.cxf.message.Message message, String originalLogString)
    • stripBinaryParts

      protected String stripBinaryParts(LogEvent event, String originalLogString)