public interface WebInterceptor
ExecutionInput as well as of the
ExecutionResult.
Interceptors are typically declared as beans in Spring configuration and
ordered as defined in ObjectProvider.orderedStream().
Supported for Spring MVC and WebFlux.
WebSocketInterceptor| Modifier and Type | Method and Description |
|---|---|
default WebInterceptor |
andThen(WebInterceptor interceptor)
Return a composed
WebInterceptor that invokes the current
interceptor first and then the one that is passed in. |
reactor.core.publisher.Mono<WebOutput> |
intercept(WebInput webInput,
WebInterceptorChain chain)
Intercept a request and possibly delegate to the rest of the chain
consisting of more interceptors as well as a
GraphQlService at the end to actually
handle the request through the GraphQL engine. |
reactor.core.publisher.Mono<WebOutput> intercept(WebInput webInput, WebInterceptorChain chain)
GraphQlService at the end to actually
handle the request through the GraphQL engine.webInput - container for HTTP request information and options to
customize the ExecutionInput.chain - the rest of the chain to delegate to for request executionMono with the resultdefault WebInterceptor andThen(WebInterceptor interceptor)
WebInterceptor that invokes the current
interceptor first and then the one that is passed in.interceptor - the interceptor to delegate to after "this" interceptor