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 TypeMethodDescriptionvoid
accept
(RoutingContext item) Deprecated.static GraphQLHandlerBuilder
builder
(graphql.GraphQL graphQL) static GraphQLHandler
create
(graphql.GraphQL graphQL) static GraphQLHandler
create
(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)
insteadboolean
io.vertx.ext.web.handler.graphql.GraphQLHandler
static RoutingContext
getRoutingContext
(graphql.GraphQLContext graphQlContext) Deprecated.invokeGraphQLContext.get(Object)
withRoutingContext
class object instead.void
handle
(RoutingContext arg0) int
hashCode()
locale
(Function<RoutingContext, Locale> factory) Deprecated.as of 4.2, use#beforeExecute(Handler)
insteadstatic GraphQLHandler
newInstance
(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:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in 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)
withRoutingContext
class 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:
accept
in interfaceConsumer<RoutingContext>
-
newInstance
-
builder(GraphQL)
instead