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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.booleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static GraphQLHandlertoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
GraphQLHandler
-
GraphQLHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Parameters:
event- the event to handle
-
create
Create a newGraphQLHandlerthat will use the providedgraphQLobject to execute queries.The handler will be configured with default
GraphQLHandlerOptions.- Parameters:
graphQL-- Returns:
-
create
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
Create a newGraphQLHandlerBuilderthat will use the providedgraphQLto build aGraphQLHandler.The handler will be configured with default
GraphQLHandlerOptions.- Parameters:
graphQL-- Returns:
-
newInstance
-