Class GraphQLHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.graphql.GraphQLHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>
public class GraphQLHandler extends Object implements Handler<RoutingContext>
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<GraphQLHandler>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GraphQLHandler(GraphQLHandler delegate)
GraphQLHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphQLHandlerBuilder
builder(graphql.GraphQL graphQL)
static GraphQLHandler
create(graphql.GraphQL graphQL)
Create a newGraphQLHandler
that will use the providedgraphQL
object to execute queries.static GraphQLHandler
create(graphql.GraphQL graphQL, GraphQLHandlerOptions options)
Create a newGraphQLHandler
that will use the providedgraphQL
object to execute queries.boolean
equals(Object o)
GraphQLHandler
getDelegate()
void
handle(RoutingContext event)
Something has happened, so handle it.int
hashCode()
static GraphQLHandler
newInstance(GraphQLHandler arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<GraphQLHandler> __TYPE_ARG
-
-
Constructor Detail
-
GraphQLHandler
public GraphQLHandler(GraphQLHandler delegate)
-
GraphQLHandler
public GraphQLHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public GraphQLHandler getDelegate()
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handle
in interfaceHandler<RoutingContext>
- Parameters:
event
- the event to handle
-
create
public static GraphQLHandler create(graphql.GraphQL graphQL)
Create a newGraphQLHandler
that will use the providedgraphQL
object to execute queries.The handler will be configured with default
GraphQLHandlerOptions
.- Parameters:
graphQL
-- Returns:
-
create
public static GraphQLHandler create(graphql.GraphQL graphQL, GraphQLHandlerOptions options)
Create a newGraphQLHandler
that will use the providedgraphQL
object to execute queries.The handler will be configured with the given
options
.- Parameters:
graphQL
-options
- options for configuring theGraphQLHandler
- Returns:
-
builder
public static GraphQLHandlerBuilder builder(graphql.GraphQL graphQL)
Create a newGraphQLHandlerBuilder
that will use the providedgraphQL
to build aGraphQLHandler
.The handler will be configured with default
GraphQLHandlerOptions
.- Parameters:
graphQL
-- Returns:
-
newInstance
public static GraphQLHandler newInstance(GraphQLHandler arg)
-
-