public class GraphQLHandler extends Object implements Handler<RoutingContext>
| Modifier and Type | Field and Description | 
|---|---|
static io.vertx.lang.rx.TypeArg<GraphQLHandler> | 
__TYPE_ARG  | 
| Constructor and Description | 
|---|
GraphQLHandler(GraphQLHandler delegate)  | 
GraphQLHandler(Object delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
GraphQLHandler | 
beforeExecute(Handler<ExecutionInputBuilderWithContext<RoutingContext>> config)
Set a callback to invoke before executing a GraphQL query. 
 | 
static GraphQLHandler | 
create(graphql.GraphQL graphQL)
Create a new  
GraphQLHandler that will use the provided graphQL object to execute queries. | 
static GraphQLHandler | 
create(graphql.GraphQL graphQL,
      GraphQLHandlerOptions options)
Create a new  
GraphQLHandler that will use the provided graphQL object to execute queries. | 
GraphQLHandler | 
dataLoaderRegistry(java.util.function.Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
Deprecated.  
 | 
boolean | 
equals(Object o)  | 
GraphQLHandler | 
getDelegate()  | 
static RoutingContext | 
getRoutingContext(graphql.GraphQLContext graphQlContext)
Retrieves the  from the . 
 | 
void | 
handle(RoutingContext event)
Something has happened, so handle it. 
 | 
int | 
hashCode()  | 
GraphQLHandler | 
locale(java.util.function.Function<RoutingContext,Locale> factory)
Deprecated.  
 | 
static GraphQLHandler | 
newInstance(GraphQLHandler arg)  | 
GraphQLHandler | 
queryContext(java.util.function.Function<RoutingContext,Object> factory)
Deprecated.  
 | 
String | 
toString()  | 
public static final io.vertx.lang.rx.TypeArg<GraphQLHandler> __TYPE_ARG
public GraphQLHandler(GraphQLHandler delegate)
public GraphQLHandler(Object delegate)
public GraphQLHandler getDelegate()
public void handle(RoutingContext event)
handle in interface Handler<RoutingContext>event - the event to handle@Deprecated public GraphQLHandler queryContext(java.util.function.Function<RoutingContext,Object> factory)
factory method will be invoked for each incoming GraphQL request.factory - public GraphQLHandler beforeExecute(Handler<ExecutionInputBuilderWithContext<RoutingContext>> config)
config - the callback to invokepublic static GraphQLHandler create(graphql.GraphQL graphQL)
GraphQLHandler that will use the provided graphQL object to execute queries.
 
 The handler will be configured with default GraphQLHandlerOptions.
graphQL - public static GraphQLHandler create(graphql.GraphQL graphQL, GraphQLHandlerOptions options)
GraphQLHandler that will use the provided graphQL object to execute queries.
 
 The handler will be configured with the given options.
graphQL - options - options for configuring the GraphQLHandlerpublic static RoutingContext getRoutingContext(graphql.GraphQLContext graphQlContext)
graphQlContext - the GraphQL context object@Deprecated public GraphQLHandler dataLoaderRegistry(java.util.function.Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
factory method will be invoked for each incoming GraphQL request.factory - @Deprecated public GraphQLHandler locale(java.util.function.Function<RoutingContext,Locale> factory)
factory method will be invoked for each incoming GraphQL request.factory - public static GraphQLHandler newInstance(GraphQLHandler arg)
Copyright © 2022 Eclipse. All rights reserved.