public class GraphQLHandler extends Object implements io.vertx.lang.rx.RxDelegate, 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) |
public static final io.vertx.lang.rx.TypeArg<GraphQLHandler> __TYPE_ARG
public GraphQLHandler(GraphQLHandler delegate)
public GraphQLHandler(Object delegate)
public GraphQLHandler getDelegate()
getDelegate in interface io.vertx.lang.rx.RxDelegatepublic 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 - @Deprecated 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 GraphQLHandlerBuilder builder(graphql.GraphQL graphQL)
GraphQLHandlerBuilder that will use the provided graphQL to build a GraphQLHandler.
The handler will be configured with default GraphQLHandlerOptions.
graphQL - @Deprecated public 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 © 2025 Eclipse. All rights reserved.