Class GraphQLHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.graphql.GraphQLHandler
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<RoutingContext>,Consumer<RoutingContext>
public class GraphQLHandler
extends Object
implements MutinyDelegate, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
A
Route handler for GraphQL requests.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGraphQLHandler(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate) GraphQLHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Deprecated.static GraphQLHandlerBuilderbuilder(graphql.GraphQL graphQL) static GraphQLHandlercreate(graphql.GraphQL graphQL) static GraphQLHandlercreate(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions options) dataLoaderRegistry(Function<RoutingContext, org.dataloader.DataLoaderRegistry> factory) Deprecated.as of 4.2, use#beforeExecute(Handler)insteadbooleanio.vertx.ext.web.handler.graphql.GraphQLHandlerstatic RoutingContextgetRoutingContext(graphql.GraphQLContext graphQlContext) Deprecated.invokeGraphQLContext.get(Object)withRoutingContextclass object instead.voidhandle(RoutingContext arg0) inthashCode()locale(Function<RoutingContext, Locale> factory) Deprecated.as of 4.2, use#beforeExecute(Handler)insteadstatic GraphQLHandlernewInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg) queryContext(Function<RoutingContext, Object> factory) Deprecated.as of 4.2, use#beforeExecute(Handler)insteadtoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
GraphQLHandler
public GraphQLHandler(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate) -
GraphQLHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.graphql.GraphQLHandler getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
queryContext
Deprecated.as of 4.2, use#beforeExecute(Handler)instead- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
beforeExecute
@Deprecated public GraphQLHandler beforeExecute(Consumer<ExecutionInputBuilderWithContext<RoutingContext>> config) Deprecated.as of 4.5.1, usebuilder(GraphQL)instead- Parameters:
config- the callback to invoke- Returns:
-
create
- 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:
-
builder
- Parameters:
graphQL-- Returns:
-
getRoutingContext
Deprecated.invokeGraphQLContext.get(Object)withRoutingContextclass object instead.- 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.as of 4.2, use#beforeExecute(Handler)instead- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
accept
- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
newInstance
-
builder(GraphQL)instead