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
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated.static final intDeprecated.protected intDeprecated.protected static final StringDeprecated.protected booleanDeprecated.protected longDeprecated.protected PrintWriterDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLoggingInterceptor(String phase) Deprecated.AbstractLoggingInterceptor(String id, String phase) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.longDeprecated.intgetLimit()Deprecated.protected abstract LoggerDeprecated.Deprecated.protected booleanisBinaryContent(String contentType) Deprecated.protected static booleanisLoggingDisabledNow(Message message) Deprecated.protected booleanisMultipartContent(String contentType) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.protected voidDeprecated.voidsetBinaryContentMediaTypes(List<String> binaryContentMediaTypes) Deprecated.voidsetInMemThreshold(long t) Deprecated.voidsetLimit(int lim) Deprecated.voidDeprecated.voidsetPrettyLogging(boolean flag) Deprecated.voidDeprecated.voidsetShowBinaryContent(boolean showBinaryContent) Deprecated.voidsetShowMultipartContent(boolean showMultipartContent) Deprecated.protected StringDeprecated.Transform the string before display.protected voidwritePayload(StringBuilder builder, StringWriter stringWriter, String contentType) Deprecated.protected voidwritePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType, boolean truncated) Deprecated.protected voidwritePrettyPayload(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, 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_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.
-