public interface GraphQLWSHandler extends ProtocolUpgradeHandler
| Modifier and Type | Method and Description | 
|---|---|
GraphQLWSHandler | 
beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> config)
Set a callback to invoke before executing a GraphQL query. 
 | 
GraphQLWSHandler | 
connectionInitHandler(Handler<ConnectionInitEvent> connectionInitHandler)
Customize the connection init  
Handler. | 
static GraphQLWSHandler | 
create(graphql.GraphQL graphQL)
Create a new  
GraphQLWSHandler that will use the provided graphQL object to execute requests. | 
static GraphQLWSHandler | 
create(graphql.GraphQL graphQL,
      GraphQLWSOptions options)
Create a new  
GraphQLWSHandler that will use the provided graphQL object to execute requests. | 
GraphQLWSHandler | 
messageHandler(Handler<Message> messageHandler)
Customize the message  
Handler. | 
static GraphQLWSHandler create(graphql.GraphQL graphQL)
GraphQLWSHandler that will use the provided graphQL object to execute requests.
 
 The handler will be configured with the default GraphQLWSOptions.
static GraphQLWSHandler create(graphql.GraphQL graphQL, GraphQLWSOptions options)
GraphQLWSHandler that will use the provided graphQL object to execute requests.
 
 The handler will be configured with the given options.
options - options for configuring the GraphQLWSOptionsGraphQLWSHandler connectionInitHandler(Handler<ConnectionInitEvent> connectionInitHandler)
Handler.
 This handler will be called when the MessageType.CONNECTION_INIT message is received.GraphQLWSHandler beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> config)
config - the callback to invokeGraphQLWSHandler messageHandler(Handler<Message> messageHandler)
Copyright © 2024 Eclipse. All rights reserved.