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 io.vertx.lang.rx.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 |
---|---|
GraphQLHandler |
beforeExecute(io.vertx.core.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,
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)
Deprecated.
|
boolean |
equals(Object o) |
io.vertx.ext.web.handler.graphql.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(Function<RoutingContext,Locale> factory)
Deprecated.
|
static GraphQLHandler |
newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg) |
GraphQLHandler |
queryContext(Function<RoutingContext,Object> factory)
Deprecated.
|
String |
toString() |
public static final io.vertx.lang.rx.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 handle@Deprecated public GraphQLHandler queryContext(Function<RoutingContext,Object> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- public GraphQLHandler beforeExecute(io.vertx.core.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, 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 GraphQLHandler
public static RoutingContext getRoutingContext(graphql.GraphQLContext graphQlContext)
graphQlContext
- the GraphQL context object@Deprecated public GraphQLHandler dataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- @Deprecated 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.