Package org.apache.cxf.ext.logging
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intprotected final DefaultLogEventMapperprotected intprotected static final Stringprotected booleanprotected booleanprotected MaskSensitiveHelperprotected LogEventSenderprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBinaryContentMediaTypes(String mediaTypes) voidaddSensitiveElementNames(Set<String> sensitiveElementNames) voidaddSensitiveProtocolHeaderNames(Set<String> protocolHeaderNames) voidcreateExchangeId(org.apache.cxf.message.Message message) longintgetLimit()protected static booleanisLoggingDisabledNow(org.apache.cxf.message.Message message) protected StringmaskSensitiveElements(org.apache.cxf.message.Message message, String originalLogString) voidsetInMemThreshold(long t) voidsetLimit(int lim) voidsetLogBinary(boolean logBinary) voidsetLogMultipart(boolean logMultipart) voidsetPrettyLogging(boolean prettyLogging) voidvoidsetSensitiveElementNames(Set<String> sensitiveElementNames) voidsetSensitiveProtocolHeaderNames(Set<String> protocolHeaderNames) protected booleanshouldLogContent(LogEvent event) protected StringstripBinaryParts(LogEvent event, String originalLogString) protected StringMethods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBeforeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
-
Field Details
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMIT- See Also:
-
DEFAULT_THRESHOLD
public static final int DEFAULT_THRESHOLD- See Also:
-
CONTENT_SUPPRESSED
- See Also:
-
LIVE_LOGGING_PROP
- See Also:
-
limit
protected int limit -
threshold
protected long threshold -
logBinary
protected boolean logBinary -
logMultipart
protected boolean logMultipart -
sender
-
eventMapper
-
maskSensitiveHelper
-
sensitiveProtocolHeaderNames
-
-
Constructor Details
-
AbstractLoggingInterceptor
-
-
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
-
setLimit
public void setLimit(int lim) -
getLimit
public int getLimit() -
setInMemThreshold
public void setInMemThreshold(long t) -
getInMemThreshold
public long getInMemThreshold() -
setSensitiveElementNames
-
addSensitiveElementNames
-
setSensitiveProtocolHeaderNames
-
addSensitiveProtocolHeaderNames
-
setSensitiveDataHelper
-
setPrettyLogging
public void setPrettyLogging(boolean prettyLogging) -
shouldLogContent
-
setLogBinary
public void setLogBinary(boolean logBinary) -
setLogMultipart
public void setLogMultipart(boolean logMultipart) -
createExchangeId
public void createExchangeId(org.apache.cxf.message.Message message) -
transform
-
maskSensitiveElements
-
stripBinaryParts
-