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 Modifier and Type Method Description void
accept(RoutingContext item)
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)
boolean
equals(Object o)
io.vertx.ext.web.handler.graphql.GraphQLHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
GraphQLHandler
locale(Function<RoutingContext,Locale> factory)
static GraphQLHandler
newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler arg)
GraphQLHandler
queryContext(Function<RoutingContext,Object> factory)
String
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
public GraphQLHandler queryContext(Function<RoutingContext,Object> factory)
- Parameters:
factory
-- Returns:
- a reference to this, so the API can be used fluently
-
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:
-
dataLoaderRegistry
public GraphQLHandler dataLoaderRegistry(Function<RoutingContext,org.dataloader.DataLoaderRegistry> factory)
- Parameters:
factory
-- Returns:
- a reference to this, so the API can be used fluently
-
locale
public GraphQLHandler locale(Function<RoutingContext,Locale> factory)
- 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)
-
-