Class GraphQLWSHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.graphql.ws.GraphQLWSHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,ProtocolUpgradeHandler
public class GraphQLWSHandler extends Object implements ProtocolUpgradeHandler, io.vertx.core.Handler<RoutingContext>
A handler for the GraphQL over WebSocket Protocol. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<GraphQLWSHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GraphQLWSHandler(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler delegate)GraphQLWSHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLWSHandlerbeforeExecute(io.vertx.core.Handler<ExecutionInputBuilderWithContext<Message>> config)Set a callback to invoke before executing a GraphQL query.GraphQLWSHandlerconnectionInitHandler(io.vertx.core.Handler<ConnectionInitEvent> connectionInitHandler)Customize the connection init .static GraphQLWSHandlercreate(graphql.GraphQL graphQL)Create a newGraphQLWSHandlerthat will use the providedgraphQLobject to execute requests.static GraphQLWSHandlercreate(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options)Create a newGraphQLWSHandlerthat will use the providedgraphQLobject to execute requests.booleanequals(Object o)io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlergetDelegate()voidhandle(RoutingContext event)Something has happened, so handle it.inthashCode()static GraphQLWSHandlernewInstance(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler arg)StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<GraphQLWSHandler> __TYPE_ARG
-
-
Constructor Detail
-
GraphQLWSHandler
public GraphQLWSHandler(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler delegate)
-
GraphQLWSHandler
public GraphQLWSHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler getDelegate()
- Specified by:
getDelegatein interfaceProtocolUpgradeHandler
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfaceProtocolUpgradeHandler- Parameters:
event- the event to handle
-
connectionInitHandler
public GraphQLWSHandler connectionInitHandler(io.vertx.core.Handler<ConnectionInitEvent> connectionInitHandler)
Customize the connection init . This handler will be called when the message is received.- Parameters:
connectionInitHandler-- Returns:
- a reference to this, so the API can be used fluently
-
beforeExecute
public GraphQLWSHandler beforeExecute(io.vertx.core.Handler<ExecutionInputBuilderWithContext<Message>> config)
Set a callback to invoke before executing a GraphQL query.- Parameters:
config- the callback to invoke- Returns:
- a reference to this, so the API can be used fluently
-
create
public static GraphQLWSHandler create(graphql.GraphQL graphQL)
Create a newGraphQLWSHandlerthat will use the providedgraphQLobject to execute requests.The handler will be configured with the default
GraphQLWSOptions.- Parameters:
graphQL-- Returns:
-
create
public static GraphQLWSHandler create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options)
Create a newGraphQLWSHandlerthat will use the providedgraphQLobject to execute requests.The handler will be configured with the given
options.- Parameters:
graphQL-options- options for configuring theGraphQLWSOptions- Returns:
-
newInstance
public static GraphQLWSHandler newInstance(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler arg)
-
-