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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
intercept(PayloadExchange exchange, PayloadInterceptorChain chain)
Process the Web request and (optionally) delegate to the nextPayloadInterceptor
through the givenPayloadInterceptorChain
.
-
-
-
Method Detail
-
intercept
reactor.core.publisher.Mono<java.lang.Void> intercept(PayloadExchange exchange, PayloadInterceptorChain chain)
Process the Web request and (optionally) delegate to the nextPayloadInterceptor
through the givenPayloadInterceptorChain
.- Parameters:
exchange
- the current payload exchangechain
- provides a way to delegate to the next interceptor- Returns:
Mono<Void>
to indicate when payload processing is complete
-
-