@Deprecated public interface ApolloWSHandler extends ProtocolUpgradeHandler
subscriptions-transport-ws transport.| Modifier and Type | Method and Description | 
|---|---|
ApolloWSHandler | 
beforeExecute(Handler<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
Deprecated.  
Set a callback to invoke before executing a GraphQL query. 
 | 
ApolloWSHandler | 
connectionHandler(Handler<ServerWebSocket> connectionHandler)
Deprecated.  
Customize the connection  
Handler. | 
ApolloWSHandler | 
connectionInitHandler(Handler<ApolloWSConnectionInitEvent> connectionInitHandler)
Deprecated.  
Customize the connection init  
Handler. | 
static ApolloWSHandler | 
create(graphql.GraphQL graphQL)
Deprecated.  
Create a new  
ApolloWSHandler that will use the provided graphQL object to execute requests. | 
static ApolloWSHandler | 
create(graphql.GraphQL graphQL,
      ApolloWSOptions options)
Deprecated.  
Create a new  
ApolloWSHandler that will use the provided graphQL object to execute requests. | 
ApolloWSHandler | 
dataLoaderRegistry(java.util.function.Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
Deprecated. 
 
as of 4.2, use  
beforeExecute(Handler) instead | 
ApolloWSHandler | 
endHandler(Handler<ServerWebSocket> endHandler)
Deprecated.  
Customize the end  
Handler. | 
static ApolloWSMessage | 
getMessage(graphql.GraphQLContext graphQlContext)
Deprecated.  
Retrieves the  
ApolloWSMessage from the GraphQLContext. | 
ApolloWSHandler | 
locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
Deprecated. 
 
as of 4.2, use  
beforeExecute(Handler) instead | 
ApolloWSHandler | 
messageHandler(Handler<ApolloWSMessage> messageHandler)
Deprecated.  
Customize the message  
Handler. | 
ApolloWSHandler | 
queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
Deprecated. 
 
as of 4.2, use  
beforeExecute(Handler) instead | 
static ApolloWSHandler create(graphql.GraphQL graphQL)
ApolloWSHandler that will use the provided graphQL object to execute requests.
 
 The handler will be configured with the default ApolloWSOptions.
static ApolloWSHandler create(graphql.GraphQL graphQL, ApolloWSOptions options)
ApolloWSHandler that will use the provided graphQL object to execute requests.
 
 The handler will be configured with the given options.
options - options for configuring the ApolloWSOptionsstatic ApolloWSMessage getMessage(graphql.GraphQLContext graphQlContext)
ApolloWSMessage from the GraphQLContext.graphQlContext - the GraphQL context objectApolloWSMessageApolloWSHandler connectionHandler(Handler<ServerWebSocket> connectionHandler)
Handler.
 This handler will be called at the beginning of each websocket connection.ApolloWSHandler connectionInitHandler(Handler<ApolloWSConnectionInitEvent> connectionInitHandler)
Handler.
 This handler will be called when the ApolloWSMessageType.CONNECTION_INIT message is received.ApolloWSHandler messageHandler(Handler<ApolloWSMessage> messageHandler)
Handler.
 This handler will be called for each ApolloWSMessage received.ApolloWSHandler endHandler(Handler<ServerWebSocket> endHandler)
Handler.
 This handler will be called at the end of each websocket connection.@Deprecated ApolloWSHandler queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
beforeExecute(Handler) insteadfactory method will be invoked for each incoming GraphQL request.@Deprecated ApolloWSHandler dataLoaderRegistry(java.util.function.Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
beforeExecute(Handler) insteadDataLoaderRegistry.
 The provided factory method will be invoked for each incoming GraphQL request.@Deprecated ApolloWSHandler locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
beforeExecute(Handler) insteadLocale passed to the GraphQL execution engine.
 The provided factory method will be invoked for each incoming GraphQL request.ApolloWSHandler beforeExecute(Handler<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
config - the callback to invokeCopyright © 2024 Eclipse. All rights reserved.