public interface GraphQLWSHandler extends ProtocolUpgradeHandler
Modifier and Type | Method and Description |
---|---|
GraphQLWSHandler |
beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> config)
Deprecated.
as of 4.5.1, use
builder(GraphQL) instead |
static GraphQLWSHandlerBuilder |
builder(graphql.GraphQL graphQL)
Create a new
GraphQLWSHandlerBuilder that will use the provided graphQL to build a GraphQLWSHandler . |
GraphQLWSHandler |
connectionInitHandler(Handler<ConnectionInitEvent> connectionInitHandler)
Deprecated.
as of 4.5.1, use
builder(GraphQL) instead |
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 |
endHandler(Handler<ServerWebSocket> endHandler)
Deprecated.
as of 4.5.1, use
builder(GraphQL) instead |
GraphQLWSHandler |
messageHandler(Handler<Message> messageHandler)
Deprecated.
as of 4.5.1, use
builder(GraphQL) instead |
static GraphQLWSHandlerBuilder builder(graphql.GraphQL graphQL)
GraphQLWSHandlerBuilder
that will use the provided graphQL
to build a GraphQLWSHandler
.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 GraphQLWSOptions
@Deprecated GraphQLWSHandler connectionInitHandler(Handler<ConnectionInitEvent> connectionInitHandler)
builder(GraphQL)
insteadHandler
.
This handler will be called when the MessageType.CONNECTION_INIT
message is received.@Deprecated GraphQLWSHandler beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> config)
builder(GraphQL)
insteadconfig
- the callback to invoke@Deprecated GraphQLWSHandler messageHandler(Handler<Message> messageHandler)
builder(GraphQL)
instead@Deprecated GraphQLWSHandler endHandler(Handler<ServerWebSocket> endHandler)
builder(GraphQL)
insteadHandler
.
This handler will be called at the end of each websocket connection.Copyright © 2024 Eclipse. All rights reserved.