Interface PayloadInterceptor

All Known Implementing Classes:
AnonymousPayloadInterceptor, AuthenticationPayloadInterceptor, AuthorizationPayloadInterceptor

public interface PayloadInterceptor
Contract for interception-style, chained processing of Payloads that may be used to implement cross-cutting, application-agnostic requirements such as security, timeouts, and others.
Since:
5.2
  • Method Details

    • intercept

      reactor.core.publisher.Mono<Void> intercept(PayloadExchange exchange, PayloadInterceptorChain chain)
      Process the Web request and (optionally) delegate to the next PayloadInterceptor through the given PayloadInterceptorChain.
      Parameters:
      exchange - the current payload exchange
      chain - provides a way to delegate to the next interceptor
      Returns:
      Mono<Void> to indicate when payload processing is complete