Class GraphQLWSHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.graphql.ws.GraphQLWSHandler
-
- All Implemented Interfaces:
Handler<RoutingContext>
,ProtocolUpgradeHandler
public class GraphQLWSHandler extends Object implements ProtocolUpgradeHandler, Handler<RoutingContext>
A handler for the GraphQL over WebSocket Protocol.NOTE: This class has been automatically generated from the
original
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<GraphQLWSHandler>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GraphQLWSHandler(GraphQLWSHandler delegate)
GraphQLWSHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphQLWSHandlerBuilder
builder(graphql.GraphQL graphQL)
Create a newGraphQLWSHandlerBuilder
that will use the providedgraphQL
to build aGraphQLWSHandler
.static GraphQLWSHandler
create(graphql.GraphQL graphQL)
Create a newGraphQLWSHandler
that will use the providedgraphQL
object to execute requests.static GraphQLWSHandler
create(graphql.GraphQL graphQL, GraphQLWSOptions options)
Create a newGraphQLWSHandler
that will use the providedgraphQL
object to execute requests.boolean
equals(Object o)
GraphQLWSHandler
getDelegate()
void
handle(RoutingContext event)
Something has happened, so handle it.int
hashCode()
static GraphQLWSHandler
newInstance(GraphQLWSHandler arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<GraphQLWSHandler> __TYPE_ARG
-
-
Constructor Detail
-
GraphQLWSHandler
public GraphQLWSHandler(GraphQLWSHandler delegate)
-
GraphQLWSHandler
public GraphQLWSHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public GraphQLWSHandler getDelegate()
- Specified by:
getDelegate
in interfaceProtocolUpgradeHandler
-
handle
public void handle(RoutingContext event)
Something has happened, so handle it.- Specified by:
handle
in interfaceHandler<RoutingContext>
- Specified by:
handle
in interfaceProtocolUpgradeHandler
- Parameters:
event
- the event to handle
-
create
public static GraphQLWSHandler create(graphql.GraphQL graphQL)
Create a newGraphQLWSHandler
that will use the providedgraphQL
object to execute requests.The handler will be configured with the default
GraphQLWSOptions
.- Parameters:
graphQL
-- Returns:
-
create
public static GraphQLWSHandler create(graphql.GraphQL graphQL, GraphQLWSOptions options)
Create a newGraphQLWSHandler
that will use the providedgraphQL
object to execute requests.The handler will be configured with the given
options
.- Parameters:
graphQL
-options
- options for configuring theGraphQLWSOptions
- Returns:
-
builder
public static GraphQLWSHandlerBuilder builder(graphql.GraphQL graphQL)
Create a newGraphQLWSHandlerBuilder
that will use the providedgraphQL
to build aGraphQLWSHandler
.- Parameters:
graphQL
-- Returns:
-
newInstance
public static GraphQLWSHandler newInstance(GraphQLWSHandler arg)
-
-