public interface WebGraphQlHandler
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WebGraphQlHandler.Builder
|
| Modifier and Type | Method and Description |
|---|---|
static WebGraphQlHandler.Builder |
builder(GraphQlService graphQlService)
Provides access to a builder to create a
WebGraphQlHandler instance. |
reactor.core.publisher.Mono<WebOutput> |
handleRequest(WebInput input)
Execute the given request and return the resulting output.
|
default reactor.core.publisher.Mono<java.lang.Void> |
handleWebSocketCompletion()
Handle the completion message that a GraphQL over WebSocket clients sends
before closing the WebSocket connection.
|
default reactor.core.publisher.Mono<java.lang.Object> |
handleWebSocketInitialization(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.
|
reactor.core.publisher.Mono<WebOutput> handleRequest(WebInput input)
input - the GraphQL request input containerdefault reactor.core.publisher.Mono<java.lang.Object> handleWebSocketInitialization(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> handleWebSocketCompletion()
static WebGraphQlHandler.Builder builder(GraphQlService graphQlService)
WebGraphQlHandler instance.graphQlService - the GraphQlService to use for actual execution of the
request.