Class ApolloWSHandler
- java.lang.Object
-
- io.vertx.reactivex.ext.web.handler.graphql.ApolloWSHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>,ProtocolUpgradeHandler
public class ApolloWSHandler extends Object implements ProtocolUpgradeHandler, io.vertx.core.Handler<RoutingContext>
A handler for GraphQL requests sent over Apollo'ssubscriptions-transport-wstransport. 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<ApolloWSHandler>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ApolloWSHandler(io.vertx.ext.web.handler.graphql.ApolloWSHandler delegate)ApolloWSHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApolloWSHandlerbeforeExecute(io.vertx.core.Handler<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)Deprecated.ApolloWSHandlerconnectionHandler(io.vertx.core.Handler<ServerWebSocket> connectionHandler)Deprecated.ApolloWSHandlerconnectionInitHandler(io.vertx.core.Handler<ApolloWSConnectionInitEvent> connectionInitHandler)Deprecated.static ApolloWSHandlercreate(graphql.GraphQL graphQL)Deprecated.static ApolloWSHandlercreate(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ApolloWSOptions options)Deprecated.ApolloWSHandlerdataLoaderRegistry(Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)Deprecated.ApolloWSHandlerendHandler(io.vertx.core.Handler<ServerWebSocket> endHandler)Deprecated.booleanequals(Object o)io.vertx.ext.web.handler.graphql.ApolloWSHandlergetDelegate()static ApolloWSMessagegetMessage(graphql.GraphQLContext graphQlContext)Deprecated.voidhandle(RoutingContext event)Deprecated.inthashCode()ApolloWSHandlerlocale(Function<ApolloWSMessage,Locale> factory)Deprecated.ApolloWSHandlermessageHandler(io.vertx.core.Handler<ApolloWSMessage> messageHandler)Deprecated.static ApolloWSHandlernewInstance(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg)ApolloWSHandlerqueryContext(Function<ApolloWSMessage,Object> factory)Deprecated.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ApolloWSHandler> __TYPE_ARG
-
-
Constructor Detail
-
ApolloWSHandler
public ApolloWSHandler(io.vertx.ext.web.handler.graphql.ApolloWSHandler delegate)
-
ApolloWSHandler
public ApolloWSHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.graphql.ApolloWSHandler getDelegate()
- Specified by:
getDelegatein interfaceProtocolUpgradeHandler
-
handle
@Deprecated public void handle(RoutingContext event)
Deprecated.Something has happened, so handle it.- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfaceProtocolUpgradeHandler- Parameters:
event- the event to handle
-
connectionHandler
@Deprecated public ApolloWSHandler connectionHandler(io.vertx.core.Handler<ServerWebSocket> connectionHandler)
Deprecated.Customize the connection . This handler will be called at the beginning of each websocket connection.- Parameters:
connectionHandler-- Returns:
- a reference to this, so the API can be used fluently
-
connectionInitHandler
@Deprecated public ApolloWSHandler connectionInitHandler(io.vertx.core.Handler<ApolloWSConnectionInitEvent> connectionInitHandler)
Deprecated.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
-
messageHandler
@Deprecated public ApolloWSHandler messageHandler(io.vertx.core.Handler<ApolloWSMessage> messageHandler)
Deprecated.Customize the message . This handler will be called for eachApolloWSMessagereceived.- Parameters:
messageHandler-- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
@Deprecated public ApolloWSHandler endHandler(io.vertx.core.Handler<ServerWebSocket> endHandler)
Deprecated.Customize the end . This handler will be called at the end of each websocket connection.- Parameters:
endHandler-- Returns:
- a reference to this, so the API can be used fluently
-
queryContext
@Deprecated public ApolloWSHandler queryContext(Function<ApolloWSMessage,Object> factory)
Deprecated.Customize the query context object. The providedfactorymethod will be invoked for each incoming GraphQL request.- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
beforeExecute
@Deprecated public ApolloWSHandler beforeExecute(io.vertx.core.Handler<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
Deprecated.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
@Deprecated public static ApolloWSHandler create(graphql.GraphQL graphQL)
Deprecated.Create a newApolloWSHandlerthat will use the providedgraphQLobject to execute requests.The handler will be configured with the default
ApolloWSOptions.- Parameters:
graphQL-- Returns:
-
create
@Deprecated public static ApolloWSHandler create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ApolloWSOptions options)
Deprecated.Create a newApolloWSHandlerthat will use the providedgraphQLobject to execute requests.The handler will be configured with the given
options.- Parameters:
graphQL-options- options for configuring theApolloWSOptions- Returns:
-
getMessage
@Deprecated public static ApolloWSMessage getMessage(graphql.GraphQLContext graphQlContext)
Deprecated.Retrieves theApolloWSMessagefrom the .- Parameters:
graphQlContext- the GraphQL context object- Returns:
- the
ApolloWSMessage
-
dataLoaderRegistry
@Deprecated public ApolloWSHandler dataLoaderRegistry(Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
Deprecated.Customize the . The providedfactorymethod will be invoked for each incoming GraphQL request.- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
locale
@Deprecated public ApolloWSHandler locale(Function<ApolloWSMessage,Locale> factory)
Deprecated.Customize the passed to the GraphQL execution engine. The providedfactorymethod will be invoked for each incoming GraphQL request.- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
public static ApolloWSHandler newInstance(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg)
-
-