Package sk.antons.sbutils.ws
Class CxfLogInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
sk.antons.sbutils.ws.CxfLogInterceptor
- All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor,org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
public class CxfLogInterceptor
extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
CXF interceptor for logging soap requests and responses.
- Author:
- antons
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat(Function<InputStream, String> value) Format request or response xml.voidhandleMessage(org.apache.cxf.binding.soap.SoapMessage message) static CxfLogInterceptorin()static CxfLogInterceptorinstance(boolean out) Logger to log messagesloggerEnabled(BooleanSupplier value) Method which determine if logger is enabledstatic CxfLogInterceptorout()Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, getUnderstoodHeaders, prepareStackTraceMethods 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
handleFault
-
Constructor Details
-
CxfLogInterceptor
public CxfLogInterceptor(boolean out)
-
-
Method Details
-
out
-
in
-
instance
-
logger
Logger to log messages -
loggerEnabled
Method which determine if logger is enabled -
format
Format request or response xml. -
handleMessage
public void handleMessage(org.apache.cxf.binding.soap.SoapMessage message) throws org.apache.cxf.interceptor.Fault - Throws:
org.apache.cxf.interceptor.Fault
-