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>
ARoutehandler for GraphQL requests. NOTE: This class has been automatically generated from theoriginalnon 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 voidaccept(RoutingContext item)GraphQLHandlerbeforeExecute(Consumer<ExecutionInputBuilderWithContext<RoutingContext>> config)static GraphQLHandlercreate(graphql.GraphQL graphQL)static GraphQLHandlercreate(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions options)GraphQLHandlerdataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)Deprecated.as of 4.2, use#beforeExecute(Handler)insteadbooleanequals(Object o)io.vertx.ext.web.handler.graphql.GraphQLHandlergetDelegate()static RoutingContextgetRoutingContext(graphql.GraphQLContext graphQlContext)voidhandle(RoutingContext arg0)inthashCode()GraphQLHandlerlocale(Function<RoutingContext,Locale> factory)Deprecated.as of 4.2, use#beforeExecute(Handler)insteadstatic GraphQLHandlernewInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg)GraphQLHandlerqueryContext(Function<RoutingContext,Object> factory)Deprecated.as of 4.2, use#beforeExecute(Handler)insteadStringtoString()
-
-
-
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:
handlein 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:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
public static GraphQLHandler newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg)
-
-