Class GraphQLHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.graphql.GraphQLHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>,io.vertx.lang.rx.RxDelegate
public class GraphQLHandler extends Object implements io.vertx.lang.rx.RxDelegate, 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 GraphQLHandlerBuilderbuilder(graphql.GraphQL graphQL)static GraphQLHandlercreate(graphql.GraphQL graphQL)Create a newGraphQLHandlerthat will use the providedgraphQLobject to execute queries.static GraphQLHandlercreate(graphql.GraphQL graphQL, GraphQLHandlerOptions options)Create a newGraphQLHandlerthat will use the providedgraphQLobject to execute queries.booleanequals(Object o)GraphQLHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static GraphQLHandlernewInstance(GraphQLHandler arg)StringtoString()
-
-
-
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()
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Parameters:
event- the event to handle
-
create
public static GraphQLHandler create(graphql.GraphQL graphQL)
Create a newGraphQLHandlerthat will use the providedgraphQLobject 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 newGraphQLHandlerthat will use the providedgraphQLobject 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 newGraphQLHandlerBuilderthat will use the providedgraphQLto build aGraphQLHandler.The handler will be configured with default
GraphQLHandlerOptions.- Parameters:
graphQL-- Returns:
-
newInstance
public static GraphQLHandler newInstance(GraphQLHandler arg)
-
-