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 | 
|---|---|
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)
Customize the . 
 | 
boolean | 
equals(Object o)  | 
GraphQLHandler | 
getDelegate()  | 
void | 
handle(RoutingContext event)
Something has happened, so handle it. 
 | 
int | 
hashCode()  | 
GraphQLHandler | 
locale(java.util.function.Function<RoutingContext,Locale> factory)
Customize the  passed to the GraphQL execution engine. 
 | 
static GraphQLHandler | 
newInstance(GraphQLHandler arg)  | 
GraphQLHandler | 
queryContext(java.util.function.Function<RoutingContext,Object> factory)
Customize the query context object. 
 | 
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 handlepublic GraphQLHandler queryContext(java.util.function.Function<RoutingContext,Object> factory)
factory method will be invoked for each incoming GraphQL request.factory - public 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 GraphQLHandler dataLoaderRegistry(java.util.function.Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
factory method will be invoked for each incoming GraphQL request.factory - 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 © 2020 Eclipse. All rights reserved.