public interface GraphQlClientInterceptor
GraphQlClient
requests.Modifier and Type | Interface and Description |
---|---|
static interface |
GraphQlClientInterceptor.Chain
Contract for delegation of single response requests to the rest of the chain.
|
static interface |
GraphQlClientInterceptor.SubscriptionChain
Contract for delegation of subscription requests to the rest of the chain.
|
Modifier and Type | Method and Description |
---|---|
default GraphQlClientInterceptor |
andThen(GraphQlClientInterceptor interceptor)
Return a new
GraphQlClientInterceptor that invokes the current
interceptor first and then the one that is passed in. |
default reactor.core.publisher.Mono<ClientGraphQlResponse> |
intercept(ClientGraphQlRequest request,
GraphQlClientInterceptor.Chain chain)
Intercept a single response request (query and mutation operations) and
delegate to the rest of the chain including other interceptors followed
by the
GraphQlTransport . |
default reactor.core.publisher.Flux<ClientGraphQlResponse> |
interceptSubscription(ClientGraphQlRequest request,
GraphQlClientInterceptor.SubscriptionChain chain)
Intercept a subscription request and delegate to the rest of the chain
including other interceptors followed by the
GraphQlTransport . |
default reactor.core.publisher.Mono<ClientGraphQlResponse> intercept(ClientGraphQlRequest request, GraphQlClientInterceptor.Chain chain)
GraphQlTransport
.request
- the request to performchain
- the rest of the chain to perform the requestMono
for the responseGraphQlClient.RequestSpec.execute()
default reactor.core.publisher.Flux<ClientGraphQlResponse> interceptSubscription(ClientGraphQlRequest request, GraphQlClientInterceptor.SubscriptionChain chain)
GraphQlTransport
.request
- the request to performchain
- the rest of the chain to perform the requestFlux
with responsesGraphQlClient.RequestSpec.executeSubscription()
default GraphQlClientInterceptor andThen(GraphQlClientInterceptor interceptor)
GraphQlClientInterceptor
that invokes the current
interceptor first and then the one that is passed in.interceptor
- the interceptor to delegate to after "this"GraphQlClientInterceptor