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
  • Method Details

    • instance

      public static SBWSLoggingInterceptor instance()
    • logger

      public SBWSLoggingInterceptor logger(Consumer<String> value)
      Logger to log messages
    • loggerEnabled

      public SBWSLoggingInterceptor loggerEnabled(BooleanSupplier value)
      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:
      handleRequest in interface org.springframework.ws.client.support.interceptor.ClientInterceptor
    • handleResponse

      public boolean handleResponse(org.springframework.ws.context.MessageContext messageContext)
      Specified by:
      handleResponse in interface org.springframework.ws.client.support.interceptor.ClientInterceptor
    • handleFault

      public boolean handleFault(org.springframework.ws.context.MessageContext messageContext)
      Specified by:
      handleFault in interface org.springframework.ws.client.support.interceptor.ClientInterceptor
    • afterCompletion

      public void afterCompletion(org.springframework.ws.context.MessageContext messageContext, Exception ex)
      Specified by:
      afterCompletion in interface org.springframework.ws.client.support.interceptor.ClientInterceptor