public interface WebGraphQlInterceptor
ExecutionInput and
the ExecutionResult.
Interceptors are typically declared as beans in Spring configuration and
ordered as defined in ObjectProvider.orderedStream().
Supported for Spring MVC and WebFlux.
WebSocketGraphQlInterceptor| Modifier and Type | Interface and Description |
|---|---|
static interface |
WebGraphQlInterceptor.Chain
Contract for delegation to the rest of the chain.
|
| Modifier and Type | Method and Description |
|---|---|
default WebGraphQlInterceptor |
andThen(WebGraphQlInterceptor nextInterceptor)
Return a new
WebGraphQlInterceptor that invokes the current
interceptor first and then the one that is passed in. |
default WebGraphQlInterceptor.Chain |
apply(WebGraphQlInterceptor.Chain chain)
Apply this interceptor to the given
Chain resulting in an intercepted chain. |
reactor.core.publisher.Mono<WebGraphQlResponse> |
intercept(WebGraphQlRequest request,
WebGraphQlInterceptor.Chain chain)
Intercept a request and delegate to the rest of the chain including other
interceptors and a
ExecutionGraphQlService. |
reactor.core.publisher.Mono<WebGraphQlResponse> intercept(WebGraphQlRequest request, WebGraphQlInterceptor.Chain chain)
ExecutionGraphQlService.request - the request which may be a WebSocketGraphQlRequest
when intercepting a GraphQL request over WebSocketchain - the rest of the chain to execute the requestMono with the responsedefault WebGraphQlInterceptor andThen(WebGraphQlInterceptor nextInterceptor)
WebGraphQlInterceptor that invokes the current
interceptor first and then the one that is passed in.nextInterceptor - the interceptor to delegate to after the currentdefault WebGraphQlInterceptor.Chain apply(WebGraphQlInterceptor.Chain chain)
Chain resulting in an intercepted chain.chain - the chain to add interception around