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 SummaryFieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated.static final intDeprecated.protected intDeprecated.protected static final StringDeprecated.protected booleanDeprecated.protected longDeprecated.protected PrintWriterDeprecated.
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractLoggingInterceptor(String phase) Deprecated.AbstractLoggingInterceptor(String id, String phase) Deprecated.
- 
Method SummaryModifier 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.AbstractPhaseInterceptoraddAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBeforeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.interceptor.InterceptorhandleMessage
- 
Field Details- 
DEFAULT_LIMITpublic static final int DEFAULT_LIMITDeprecated.- See Also:
 
- 
BINARY_CONTENT_MESSAGEDeprecated.- See Also:
 
- 
MULTIPART_CONTENT_MESSAGEDeprecated.- See Also:
 
- 
limitprotected int limitDeprecated.
- 
thresholdprotected long thresholdDeprecated.
- 
writerDeprecated.
- 
prettyLoggingprotected boolean prettyLoggingDeprecated.
 
- 
- 
Constructor Details- 
AbstractLoggingInterceptorDeprecated.
- 
AbstractLoggingInterceptorDeprecated.
 
- 
- 
Method Details- 
isLoggingDisabledNowDeprecated.
- 
getLoggerDeprecated.
- 
setOutputLocationDeprecated.
- 
setPrintWriterDeprecated.
- 
getPrintWriterDeprecated.
- 
setLimitpublic void setLimit(int lim) Deprecated.
- 
getLimitpublic int getLimit()Deprecated.
- 
setPrettyLoggingpublic void setPrettyLogging(boolean flag) Deprecated.
- 
isPrettyLoggingpublic boolean isPrettyLogging()Deprecated.
- 
setInMemThresholdpublic void setInMemThreshold(long t) Deprecated.
- 
getInMemThresholdpublic long getInMemThreshold()Deprecated.
- 
writePayloadprotected void writePayload(StringBuilder builder, CachedOutputStream cos, String encoding, String contentType, boolean truncated) throws Exception Deprecated.- Throws:
- Exception
 
- 
writePayloadprotected void writePayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception Deprecated.- Throws:
- Exception
 
- 
writePrettyPayloadprotected void writePrettyPayload(StringBuilder builder, StringWriter stringWriter, String contentType) throws Exception Deprecated.- Throws:
- Exception
 
- 
transformDeprecated.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
 
- 
logDeprecated.
- 
setShowBinaryContentpublic void setShowBinaryContent(boolean showBinaryContent) Deprecated.
- 
isShowBinaryContentpublic boolean isShowBinaryContent()Deprecated.
- 
isBinaryContentDeprecated.
- 
isShowMultipartContentpublic boolean isShowMultipartContent()Deprecated.
- 
setShowMultipartContentpublic void setShowMultipartContent(boolean showMultipartContent) Deprecated.
- 
isMultipartContentDeprecated.
- 
getBinaryContentMediaTypesDeprecated.
- 
setBinaryContentMediaTypesDeprecated.
 
-