Package org.apache.cxf.interceptor
Class AbstractLoggingInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
org.apache.cxf.interceptor.AbstractLoggingInterceptor
- All Implemented Interfaces:
Interceptor<Message>
,PhaseInterceptor<Message>
- Direct Known Subclasses:
LoggingInInterceptor
,LoggingOutInterceptor
@Deprecated
public abstract class AbstractLoggingInterceptor
extends AbstractPhaseInterceptor<Message>
Deprecated.
A simple logging handler which outputs the bytes of the message to the
Logger.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Deprecated.static final int
Deprecated.protected int
Deprecated.protected static final String
Deprecated.protected boolean
Deprecated.protected long
Deprecated.protected PrintWriter
Deprecated. -
Constructor Summary
ConstructorDescriptionAbstractLoggingInterceptor
(String phase) Deprecated.AbstractLoggingInterceptor
(String id, String phase) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.long
Deprecated.int
getLimit()
Deprecated.protected abstract Logger
Deprecated.Deprecated.protected boolean
isBinaryContent
(String contentType) Deprecated.protected static boolean
isLoggingDisabledNow
(Message message) Deprecated.protected boolean
isMultipartContent
(String contentType) Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.protected void
Deprecated.void
setBinaryContentMediaTypes
(List<String> binaryContentMediaTypes) Deprecated.void
setInMemThreshold
(long t) Deprecated.void
setLimit
(int lim) Deprecated.void
Deprecated.void
setPrettyLogging
(boolean flag) Deprecated.void
Deprecated.void
setShowBinaryContent
(boolean showBinaryContent) Deprecated.void
setShowMultipartContent
(boolean showMultipartContent) Deprecated.protected String
Deprecated.Transform the string before display.protected void
writePayload
(StringBuilder builder, StringWriter stringWriter, String contentType) Deprecated.protected void
writePayload
(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType, boolean truncated) Deprecated.protected void
writePrettyPayload
(StringBuilder builder, StringWriter stringWriter, String contentType) Deprecated.Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cxf.interceptor.Interceptor
handleMessage
-
Field Details
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMITDeprecated.- See Also:
-
BINARY_CONTENT_MESSAGE
Deprecated.- See Also:
-
MULTIPART_CONTENT_MESSAGE
Deprecated.- See Also:
-
limit
protected int limitDeprecated. -
threshold
protected long thresholdDeprecated. -
writer
Deprecated. -
prettyLogging
protected boolean prettyLoggingDeprecated.
-
-
Constructor Details
-
AbstractLoggingInterceptor
Deprecated. -
AbstractLoggingInterceptor
Deprecated.
-
-
Method Details
-
isLoggingDisabledNow
Deprecated. -
getLogger
Deprecated. -
setOutputLocation
Deprecated. -
setPrintWriter
Deprecated. -
getPrintWriter
Deprecated. -
setLimit
public void setLimit(int lim) Deprecated. -
getLimit
public int getLimit()Deprecated. -
setPrettyLogging
public void setPrettyLogging(boolean flag) Deprecated. -
isPrettyLogging
public boolean isPrettyLogging()Deprecated. -
setInMemThreshold
public void setInMemThreshold(long t) Deprecated. -
getInMemThreshold
public long getInMemThreshold()Deprecated. -
writePayload
protected void writePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType, boolean truncated) throws Exception Deprecated.- Throws:
Exception
-
writePayload
protected void writePayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception Deprecated.- Throws:
Exception
-
writePrettyPayload
protected void writePrettyPayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception Deprecated.- Throws:
Exception
-
transform
Deprecated.Transform the string before display. The implementation in this class does nothing. Override this method if you wish to change the contents of the logged message before it is delivered to the output. For example, you can use this to mask out sensitive information.- Parameters:
originalLogString
- the raw log message.- Returns:
- transformed data
-
log
Deprecated. -
setShowBinaryContent
public void setShowBinaryContent(boolean showBinaryContent) Deprecated. -
isShowBinaryContent
public boolean isShowBinaryContent()Deprecated. -
isBinaryContent
Deprecated. -
isShowMultipartContent
public boolean isShowMultipartContent()Deprecated. -
setShowMultipartContent
public void setShowMultipartContent(boolean showMultipartContent) Deprecated. -
isMultipartContent
Deprecated. -
getBinaryContentMediaTypes
Deprecated. -
setBinaryContentMediaTypes
Deprecated.
-