Class GraphQLHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.graphql.GraphQLHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
,Consumer<RoutingContext>
public class GraphQLHandler extends Object implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
ARoute
handler for GraphQL requests. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<GraphQLHandler>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GraphQLHandler(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate)
GraphQLHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(RoutingContext item)
GraphQLHandler
beforeExecute(Consumer<ExecutionInputBuilderWithContext<RoutingContext>> config)
static GraphQLHandler
create(graphql.GraphQL graphQL)
static GraphQLHandler
create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions options)
GraphQLHandler
dataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
insteadboolean
equals(Object o)
io.vertx.ext.web.handler.graphql.GraphQLHandler
getDelegate()
static RoutingContext
getRoutingContext(graphql.GraphQLContext graphQlContext)
void
handle(RoutingContext arg0)
int
hashCode()
GraphQLHandler
locale(Function<RoutingContext,Locale> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
insteadstatic GraphQLHandler
newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg)
GraphQLHandler
queryContext(Function<RoutingContext,Object> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
insteadString
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<GraphQLHandler> __TYPE_ARG
-
-
Constructor Detail
-
GraphQLHandler
public GraphQLHandler(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate)
-
GraphQLHandler
public GraphQLHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.graphql.GraphQLHandler getDelegate()
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
-
queryContext
@Deprecated public GraphQLHandler queryContext(Function<RoutingContext,Object> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
instead- Parameters:
factory
-- Returns:
- a reference to this, so the API can be used fluently
-
beforeExecute
public GraphQLHandler beforeExecute(Consumer<ExecutionInputBuilderWithContext<RoutingContext>> config)
- Parameters:
config
- the callback to invoke- Returns:
-
create
public static GraphQLHandler create(graphql.GraphQL graphQL)
- Parameters:
graphQL
-- Returns:
-
create
public static GraphQLHandler create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions options)
- Parameters:
graphQL
-options
- options for configuring theGraphQLHandler
- Returns:
-
getRoutingContext
public static RoutingContext getRoutingContext(graphql.GraphQLContext graphQlContext)
- Parameters:
graphQlContext
- the GraphQL context object- Returns:
- the
-
dataLoaderRegistry
@Deprecated public GraphQLHandler dataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
instead- Parameters:
factory
-- Returns:
- a reference to this, so the API can be used fluently
-
locale
@Deprecated public GraphQLHandler locale(Function<RoutingContext,Locale> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
instead- Parameters:
factory
-- Returns:
- a reference to this, so the API can be used fluently
-
accept
public void accept(RoutingContext item)
- Specified by:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
public static GraphQLHandler newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg)
-
-