@Deprecated public abstract class AbstractLoggingInterceptor extends AbstractPhaseInterceptor<Message>
Modifier and Type | Field and Description |
---|---|
protected static String |
BINARY_CONTENT_MESSAGE
Deprecated.
|
static int |
DEFAULT_LIMIT
Deprecated.
|
protected int |
limit
Deprecated.
|
protected static String |
MULTIPART_CONTENT_MESSAGE
Deprecated.
|
protected boolean |
prettyLogging
Deprecated.
|
protected long |
threshold
Deprecated.
|
protected PrintWriter |
writer
Deprecated.
|
Constructor and Description |
---|
AbstractLoggingInterceptor(String phase)
Deprecated.
|
AbstractLoggingInterceptor(String id,
String phase)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getBinaryContentMediaTypes()
Deprecated.
|
long |
getInMemThreshold()
Deprecated.
|
int |
getLimit()
Deprecated.
|
protected abstract Logger |
getLogger()
Deprecated.
|
PrintWriter |
getPrintWriter()
Deprecated.
|
protected boolean |
isBinaryContent(String contentType)
Deprecated.
|
protected static boolean |
isLoggingDisabledNow(Message message)
Deprecated.
|
protected boolean |
isMultipartContent(String contentType)
Deprecated.
|
boolean |
isPrettyLogging()
Deprecated.
|
boolean |
isShowBinaryContent()
Deprecated.
|
boolean |
isShowMultipartContent()
Deprecated.
|
protected void |
log(Logger logger,
String message)
Deprecated.
|
void |
setBinaryContentMediaTypes(List<String> binaryContentMediaTypes)
Deprecated.
|
void |
setInMemThreshold(long t)
Deprecated.
|
void |
setLimit(int lim)
Deprecated.
|
void |
setOutputLocation(String s)
Deprecated.
|
void |
setPrettyLogging(boolean flag)
Deprecated.
|
void |
setPrintWriter(PrintWriter w)
Deprecated.
|
void |
setShowBinaryContent(boolean showBinaryContent)
Deprecated.
|
void |
setShowMultipartContent(boolean showMultipartContent)
Deprecated.
|
protected String |
transform(String originalLogString)
Deprecated.
Transform the string before display.
|
protected void |
writePayload(StringBuilder builder,
CachedOutputStream cos,
String encoding,
String contentType,
boolean truncated)
Deprecated.
|
protected void |
writePayload(StringBuilder builder,
StringWriter stringWriter,
String contentType)
Deprecated.
|
protected void |
writePrettyPayload(StringBuilder builder,
StringWriter stringWriter,
String contentType)
Deprecated.
|
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
protected static final String BINARY_CONTENT_MESSAGE
protected static final String MULTIPART_CONTENT_MESSAGE
protected int limit
protected long threshold
protected PrintWriter writer
protected boolean prettyLogging
public AbstractLoggingInterceptor(String phase)
protected static boolean isLoggingDisabledNow(Message message)
protected abstract Logger getLogger()
public void setOutputLocation(String s)
public void setPrintWriter(PrintWriter w)
public PrintWriter getPrintWriter()
public void setLimit(int lim)
public int getLimit()
public void setPrettyLogging(boolean flag)
public boolean isPrettyLogging()
public void setInMemThreshold(long t)
public long getInMemThreshold()
protected void writePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType, boolean truncated) throws Exception
Exception
protected void writePayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception
Exception
protected void writePrettyPayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception
Exception
protected String transform(String originalLogString)
originalLogString
- the raw log message.public void setShowBinaryContent(boolean showBinaryContent)
public boolean isShowBinaryContent()
protected boolean isBinaryContent(String contentType)
public boolean isShowMultipartContent()
public void setShowMultipartContent(boolean showMultipartContent)
protected boolean isMultipartContent(String contentType)
Copyright © 2021 JBoss by Red Hat. All rights reserved.