Class ValidatingInterceptor

java.lang.Object
io.fluxcapacitor.javaclient.tracking.handling.validation.ValidatingInterceptor
All Implemented Interfaces:
HandlerDecorator, HandlerInterceptor

public class ValidatingInterceptor extends Object implements HandlerInterceptor
  • Constructor Details

    • ValidatingInterceptor

      public ValidatingInterceptor()
  • Method Details

    • interceptHandling

      public Function<DeserializingMessage,Object> interceptHandling(Function<DeserializingMessage,Object> function, HandlerInvoker invoker)
      Description copied from interface: HandlerInterceptor
      Intercepts a message before it's handled. The underlying handler can be invoked using the given function.

      Before invoking the handler it is possible to inspect or modify the message. It is also possible to block a message simply by returning a function that returns without invoking the handler.

      After invoking the handler it is possible to inspect or modify the response.

      The given invoker contains information about the underlying handler.

      Specified by:
      interceptHandling in interface HandlerInterceptor