public interface WebInterceptor
ExecutionInput
and of the ExecutionResult
from request execution.
Interceptors may be declared as beans in Spring configuration and ordered as defined in
ObjectProvider.orderedStream()
.
Supported for Spring MVC and WebFlux.
Modifier and Type | Method and Description |
---|---|
default WebInterceptor |
andThen(WebInterceptor interceptor)
Return a composed
WebInterceptor that invokes the current interceptor first
one and then the one one passed in. |
reactor.core.publisher.Mono<WebOutput> |
intercept(WebInput webInput,
WebGraphQlHandler next)
Intercept a request and delegate for further handling and request execution via
WebGraphQlHandler.handle(WebInput) . |
reactor.core.publisher.Mono<WebOutput> intercept(WebInput webInput, WebGraphQlHandler next)
WebGraphQlHandler.handle(WebInput)
.webInput
- container with HTTP request information and options to customize
the ExecutionInput
.next
- the handler to delegate to for request executionMono
with the resultdefault WebInterceptor andThen(WebInterceptor interceptor)
WebInterceptor
that invokes the current interceptor first
one and then the one one passed in.interceptor
- the interceptor to compose the current one with