public class GraphQLHandler extends Object implements io.vertx.core.Handler<RoutingContext>
Route handler for GraphQL requests.
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 TypeArg<GraphQLHandler> |
__TYPE_ARG |
| Constructor and Description |
|---|
GraphQLHandler(io.vertx.ext.web.handler.graphql.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,
io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions options)
Create a new
GraphQLHandler that will use the provided graphQL object to execute queries. |
GraphQLHandler |
dataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
Customize the .
|
boolean |
equals(Object o) |
io.vertx.ext.web.handler.graphql.GraphQLHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
GraphQLHandler |
locale(Function<RoutingContext,Locale> factory)
Customize the passed to the GraphQL execution engine.
|
static GraphQLHandler |
newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg) |
GraphQLHandler |
queryContext(Function<RoutingContext,Object> factory)
Customize the query context object.
|
String |
toString() |
public static final TypeArg<GraphQLHandler> __TYPE_ARG
public GraphQLHandler(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate)
public GraphQLHandler(Object delegate)
public io.vertx.ext.web.handler.graphql.GraphQLHandler getDelegate()
public void handle(RoutingContext event)
handle in interface io.vertx.core.Handler<RoutingContext>event - the event to handlepublic GraphQLHandler queryContext(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, io.vertx.ext.web.handler.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(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
factory method will be invoked for each incoming GraphQL request.factory - public GraphQLHandler locale(Function<RoutingContext,Locale> factory)
factory method will be invoked for each incoming GraphQL request.factory - public static GraphQLHandler newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg)
Copyright © 2022 Eclipse. All rights reserved.