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 LogEventSender |
sender |
protected long |
threshold |
Constructor and Description |
---|
AbstractLoggingInterceptor(String phase,
LogEventSender sender) |
Modifier and Type | Method and Description |
---|---|
void |
addBinaryContentMediaTypes(String mediaTypes) |
void |
createExchangeId(Message message) |
long |
getInMemThreshold() |
int |
getLimit() |
protected static boolean |
isLoggingDisabledNow(Message message) |
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) |
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
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 setPrettyLogging(boolean prettyLogging)
protected boolean shouldLogContent(LogEvent event)
public void setLogBinary(boolean logBinary)
public void setLogMultipart(boolean logMultipart)
public void createExchangeId(Message message)
Copyright © 2021 JBoss by Red Hat. All rights reserved.