public class ApolloWSHandler extends Object implements ProtocolUpgradeHandler, Handler<RoutingContext>
subscriptions-transport-ws
transport.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ApolloWSHandler> |
__TYPE_ARG |
Constructor and Description |
---|
ApolloWSHandler(ApolloWSHandler delegate) |
ApolloWSHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
ApolloWSHandler |
beforeExecute(Handler<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
Set a callback to invoke before executing a GraphQL query.
|
ApolloWSHandler |
connectionHandler(Handler<ServerWebSocket> connectionHandler)
Customize the connection .
|
ApolloWSHandler |
connectionInitHandler(Handler<ApolloWSConnectionInitEvent> connectionInitHandler)
Customize the connection init .
|
static ApolloWSHandler |
create(graphql.GraphQL graphQL)
Create a new
ApolloWSHandler that will use the provided graphQL object to execute requests. |
static ApolloWSHandler |
create(graphql.GraphQL graphQL,
ApolloWSOptions options)
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.
|
ApolloWSHandler |
endHandler(Handler<ServerWebSocket> endHandler)
Customize the end .
|
boolean |
equals(Object o) |
ApolloWSHandler |
getDelegate() |
static ApolloWSMessage |
getMessage(graphql.GraphQLContext graphQlContext)
Retrieves the
ApolloWSMessage from the . |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
ApolloWSHandler |
locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
Deprecated.
|
ApolloWSHandler |
messageHandler(Handler<ApolloWSMessage> messageHandler)
Customize the message .
|
static ApolloWSHandler |
newInstance(ApolloWSHandler arg) |
ApolloWSHandler |
queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
Deprecated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<ApolloWSHandler> __TYPE_ARG
public ApolloWSHandler(ApolloWSHandler delegate)
public ApolloWSHandler(Object delegate)
public ApolloWSHandler getDelegate()
getDelegate
in interface ProtocolUpgradeHandler
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
handle
in interface ProtocolUpgradeHandler
event
- the event to handlepublic ApolloWSHandler connectionHandler(Handler<ServerWebSocket> connectionHandler)
connectionHandler
- public ApolloWSHandler connectionInitHandler(Handler<ApolloWSConnectionInitEvent> connectionInitHandler)
connectionInitHandler
- public ApolloWSHandler messageHandler(Handler<ApolloWSMessage> messageHandler)
ApolloWSMessage
received.messageHandler
- public ApolloWSHandler endHandler(Handler<ServerWebSocket> endHandler)
endHandler
- @Deprecated public ApolloWSHandler queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- public ApolloWSHandler beforeExecute(Handler<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
config
- the callback to invokepublic 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
.
graphQL
- public 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
.
graphQL
- options
- options for configuring the ApolloWSOptions
public static ApolloWSMessage getMessage(graphql.GraphQLContext graphQlContext)
ApolloWSMessage
from the .graphQlContext
- the GraphQL context objectApolloWSMessage
@Deprecated public ApolloWSHandler dataLoaderRegistry(java.util.function.Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- @Deprecated public ApolloWSHandler locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- public static ApolloWSHandler newInstance(ApolloWSHandler arg)
Copyright © 2023 Eclipse. All rights reserved.