Package sk.antons.sbutils.ws
Class SBWSLoggingInterceptor
java.lang.Object
sk.antons.sbutils.ws.SBWSLoggingInterceptor
- All Implemented Interfaces:
org.springframework.ws.client.support.interceptor.ClientInterceptor
public class SBWSLoggingInterceptor
extends Object
implements org.springframework.ws.client.support.interceptor.ClientInterceptor
Spring boot WS interceptor for logging soap requests and responses.
- Author:
- antons
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides xml formatting. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(org.springframework.ws.context.MessageContext messageContext, Exception ex) format(Function<InputStream, String> value) Format request or response xml.booleanhandleFault(org.springframework.ws.context.MessageContext messageContext) booleanhandleRequest(org.springframework.ws.context.MessageContext messageContext) booleanhandleResponse(org.springframework.ws.context.MessageContext messageContext) static SBWSLoggingInterceptorinstance()Logger to log messagesloggerEnabled(BooleanSupplier value) Method which determine if logger is enabled
-
Method Details
-
instance
-
logger
Logger to log messages -
loggerEnabled
Method which determine if logger is enabled -
format
Format request or response xml. -
handleRequest
public boolean handleRequest(org.springframework.ws.context.MessageContext messageContext) - Specified by:
handleRequestin interfaceorg.springframework.ws.client.support.interceptor.ClientInterceptor
-
handleResponse
public boolean handleResponse(org.springframework.ws.context.MessageContext messageContext) - Specified by:
handleResponsein interfaceorg.springframework.ws.client.support.interceptor.ClientInterceptor
-
handleFault
public boolean handleFault(org.springframework.ws.context.MessageContext messageContext) - Specified by:
handleFaultin interfaceorg.springframework.ws.client.support.interceptor.ClientInterceptor
-
afterCompletion
public void afterCompletion(org.springframework.ws.context.MessageContext messageContext, Exception ex) - Specified by:
afterCompletionin interfaceorg.springframework.ws.client.support.interceptor.ClientInterceptor
-