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
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
intercept
(PayloadExchange exchange, PayloadInterceptorChain chain) Process the Web request and (optionally) delegate to the nextPayloadInterceptor
through the givenPayloadInterceptorChain
.
-
Method Details
-
intercept
reactor.core.publisher.Mono<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
-