public interface WebSocketInterceptor extends WebInterceptor
WebInterceptor with additional methods to handle the
start and end of a WebSocket connection. Only a single interceptor of type
WebSocketInterceptor may be declared.| Modifier and Type | Method and Description |
|---|---|
default reactor.core.publisher.Mono<java.lang.Void> |
handleConnectionCompletion()
Handle the completion message that a GraphQL over WebSocket clients sends
before closing the WebSocket connection.
|
default reactor.core.publisher.Mono<java.lang.Object> |
handleConnectionInitialization(java.util.Map<java.lang.String,java.lang.Object> payload)
Handle the payload from the connection initialization message that a
GraphQL over WebSocket client must send after the WebSocket session is
established and before sending any requests.
|
default 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. |
andThendefault reactor.core.publisher.Mono<WebOutput> intercept(WebInput webInput, WebInterceptorChain chain)
WebInterceptorGraphQlService at the end to actually
handle the request through the GraphQL engine.intercept in interface WebInterceptorwebInput - 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 reactor.core.publisher.Mono<java.lang.Object> handleConnectionInitialization(java.util.Map<java.lang.String,java.lang.Object> payload)
payload - the payload from the ConnectionInit messageConnectionAck messagedefault reactor.core.publisher.Mono<java.lang.Void> handleConnectionCompletion()