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 SummaryFields Modifier and Type Field Description protected static StringBINARY_CONTENT_MESSAGEDeprecated.static intDEFAULT_LIMITDeprecated.protected intlimitDeprecated.protected static StringMULTIPART_CONTENT_MESSAGEDeprecated.protected booleanprettyLoggingDeprecated.protected longthresholdDeprecated.protected PrintWriterwriterDeprecated.
 - 
Constructor SummaryConstructors Constructor Description AbstractLoggingInterceptor(String phase)Deprecated.AbstractLoggingInterceptor(String id, String phase)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<String>getBinaryContentMediaTypes()Deprecated.longgetInMemThreshold()Deprecated.intgetLimit()Deprecated.protected abstract LoggergetLogger()Deprecated.PrintWritergetPrintWriter()Deprecated.protected booleanisBinaryContent(String contentType)Deprecated.protected static booleanisLoggingDisabledNow(Message message)Deprecated.protected booleanisMultipartContent(String contentType)Deprecated.booleanisPrettyLogging()Deprecated.booleanisShowBinaryContent()Deprecated.booleanisShowMultipartContent()Deprecated.protected voidlog(Logger logger, String message)Deprecated.voidsetBinaryContentMediaTypes(List<String> binaryContentMediaTypes)Deprecated.voidsetInMemThreshold(long t)Deprecated.voidsetLimit(int lim)Deprecated.voidsetOutputLocation(String s)Deprecated.voidsetPrettyLogging(boolean flag)Deprecated.voidsetPrintWriter(PrintWriter w)Deprecated.voidsetShowBinaryContent(boolean showBinaryContent)Deprecated.voidsetShowMultipartContent(boolean showMultipartContent)Deprecated.protected Stringtransform(String originalLogString)Deprecated.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, setBefore
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.cxf.interceptor.InterceptorhandleMessage
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_LIMITpublic static final int DEFAULT_LIMIT Deprecated.- See Also:
- Constant Field Values
 
 - 
BINARY_CONTENT_MESSAGEprotected static final String BINARY_CONTENT_MESSAGE Deprecated.- See Also:
- Constant Field Values
 
 - 
MULTIPART_CONTENT_MESSAGEprotected static final String MULTIPART_CONTENT_MESSAGE Deprecated.- See Also:
- Constant Field Values
 
 - 
limitprotected int limit Deprecated.
 - 
thresholdprotected long threshold Deprecated.
 - 
writerprotected PrintWriter writer Deprecated.
 - 
prettyLoggingprotected boolean prettyLogging Deprecated.
 
- 
 - 
Method Detail- 
isLoggingDisabledNowprotected static boolean isLoggingDisabledNow(Message message) Deprecated.
 - 
getLoggerprotected abstract Logger getLogger() Deprecated.
 - 
setOutputLocationpublic void setOutputLocation(String s) Deprecated.
 - 
setPrintWriterpublic void setPrintWriter(PrintWriter w) Deprecated.
 - 
getPrintWriterpublic PrintWriter getPrintWriter() Deprecated.
 - 
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
 
 - 
transformprotected String transform(String originalLogString) 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
 
 - 
setShowBinaryContentpublic void setShowBinaryContent(boolean showBinaryContent) Deprecated.
 - 
isShowBinaryContentpublic boolean isShowBinaryContent() Deprecated.
 - 
isBinaryContentprotected boolean isBinaryContent(String contentType) Deprecated.
 - 
isShowMultipartContentpublic boolean isShowMultipartContent() Deprecated.
 - 
setShowMultipartContentpublic void setShowMultipartContent(boolean showMultipartContent) Deprecated.
 - 
isMultipartContentprotected boolean isMultipartContent(String contentType) Deprecated.
 
- 
 
-