public abstract class AbstractLoggingInterceptor extends AbstractPhaseInterceptor<Message>
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_SUPPRESSED |
static int |
DEFAULT_LIMIT |
static int |
DEFAULT_THRESHOLD |
protected DefaultLogEventMapper |
eventMapper |
protected int |
limit |
protected static String |
LIVE_LOGGING_PROP |
protected boolean |
logBinary |
protected boolean |
logMultipart |
protected MaskSensitiveHelper |
maskSensitiveHelper |
protected LogEventSender |
sender |
protected Set<String> |
sensitiveProtocolHeaderNames |
protected long |
threshold |
Constructor and Description |
---|
AbstractLoggingInterceptor(String phase,
LogEventSender sender) |
Modifier and Type | Method and Description |
---|---|
void |
addBinaryContentMediaTypes(String mediaTypes) |
void |
addSensitiveElementNames(Set<String> sensitiveElementNames) |
void |
addSensitiveProtocolHeaderNames(Set<String> protocolHeaderNames) |
void |
createExchangeId(Message message) |
long |
getInMemThreshold() |
int |
getLimit() |
protected static boolean |
isLoggingDisabledNow(Message message) |
protected String |
maskSensitiveElements(Message message,
String originalLogString) |
void |
setInMemThreshold(long t) |
void |
setLimit(int lim) |
void |
setLogBinary(boolean logBinary) |
void |
setLogMultipart(boolean logMultipart) |
void |
setPrettyLogging(boolean prettyLogging) |
protected boolean |
shouldLogContent(LogEvent event) |
protected String |
stripBinaryParts(LogEvent event,
String originalLogString) |
protected String |
transform(Message message,
String originalLogString) |
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleMessage
public static final int DEFAULT_LIMIT
public static final int DEFAULT_THRESHOLD
public static final String CONTENT_SUPPRESSED
protected static final String LIVE_LOGGING_PROP
protected int limit
protected long threshold
protected boolean logBinary
protected boolean logMultipart
protected LogEventSender sender
protected final DefaultLogEventMapper eventMapper
protected final MaskSensitiveHelper maskSensitiveHelper
public AbstractLoggingInterceptor(String phase, LogEventSender sender)
protected static boolean isLoggingDisabledNow(Message message) throws Fault
Fault
public void addBinaryContentMediaTypes(String mediaTypes)
public void setLimit(int lim)
public int getLimit()
public void setInMemThreshold(long t)
public long getInMemThreshold()
public void addSensitiveProtocolHeaderNames(Set<String> protocolHeaderNames)
public void setPrettyLogging(boolean prettyLogging)
protected boolean shouldLogContent(LogEvent event)
public void setLogBinary(boolean logBinary)
public void setLogMultipart(boolean logMultipart)
public void createExchangeId(Message message)
protected String maskSensitiveElements(Message message, String originalLogString)
Apache CXF