Class ApolloWSHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.graphql.ApolloWSHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.mutiny.ext.web.RoutingContext>,io.vertx.mutiny.ext.web.handler.ProtocolUpgradeHandler,Consumer<io.vertx.mutiny.ext.web.RoutingContext>
public class ApolloWSHandler extends Object implements io.vertx.mutiny.ext.web.handler.ProtocolUpgradeHandler, io.vertx.core.Handler<io.vertx.mutiny.ext.web.RoutingContext>, Consumer<io.vertx.mutiny.ext.web.RoutingContext>
A handler for GraphQL requests sent over Apollo'ssubscriptions-transport-wstransport. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.smallrye.mutiny.vertx.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 voidaccept(io.vertx.mutiny.ext.web.RoutingContext item)ApolloWSHandlerbeforeExecute(Consumer<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)Deprecated.ApolloWSHandlerconnectionHandler(Consumer<io.vertx.mutiny.core.http.ServerWebSocket> connectionHandler)Deprecated.ApolloWSHandlerconnectionInitHandler(Consumer<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.as of 4.2, use#beforeExecute(Handler)insteadApolloWSHandlerendHandler(Consumer<io.vertx.mutiny.core.http.ServerWebSocket> endHandler)Deprecated.booleanequals(Object o)io.vertx.ext.web.handler.graphql.ApolloWSHandlergetDelegate()static ApolloWSMessagegetMessage(graphql.GraphQLContext graphQlContext)Deprecated.voidhandle(io.vertx.mutiny.ext.web.RoutingContext arg0)Deprecated.inthashCode()ApolloWSHandlerlocale(Function<ApolloWSMessage,Locale> factory)Deprecated.as of 4.2, use#beforeExecute(Handler)insteadApolloWSHandlermessageHandler(Consumer<ApolloWSMessage> messageHandler)Deprecated.static ApolloWSHandlernewInstance(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg)ApolloWSHandlerqueryContext(Function<ApolloWSMessage,Object> factory)Deprecated.as of 4.2, use#beforeExecute(Handler)insteadStringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.smallrye.mutiny.vertx.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 interfaceio.vertx.mutiny.ext.web.handler.ProtocolUpgradeHandler
-
handle
@Deprecated public void handle(io.vertx.mutiny.ext.web.RoutingContext arg0)
Deprecated.- Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.mutiny.ext.web.RoutingContext>- Specified by:
handlein interfaceio.vertx.mutiny.ext.web.handler.ProtocolUpgradeHandler
-
connectionHandler
@Deprecated public ApolloWSHandler connectionHandler(Consumer<io.vertx.mutiny.core.http.ServerWebSocket> connectionHandler)
Deprecated.- Parameters:
connectionHandler-- Returns:
-
connectionInitHandler
@Deprecated public ApolloWSHandler connectionInitHandler(Consumer<ApolloWSConnectionInitEvent> connectionInitHandler)
Deprecated.- Parameters:
connectionInitHandler-- Returns:
-
messageHandler
@Deprecated public ApolloWSHandler messageHandler(Consumer<ApolloWSMessage> messageHandler)
Deprecated.- Parameters:
messageHandler-- Returns:
-
endHandler
@Deprecated public ApolloWSHandler endHandler(Consumer<io.vertx.mutiny.core.http.ServerWebSocket> endHandler)
Deprecated.- Parameters:
endHandler-- Returns:
-
queryContext
@Deprecated public ApolloWSHandler queryContext(Function<ApolloWSMessage,Object> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)instead- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
beforeExecute
@Deprecated public ApolloWSHandler beforeExecute(Consumer<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
Deprecated.- Parameters:
config- the callback to invoke- Returns:
-
create
@Deprecated public static ApolloWSHandler create(graphql.GraphQL graphQL)
Deprecated.- Parameters:
graphQL-- Returns:
-
create
@Deprecated public static ApolloWSHandler create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ApolloWSOptions options)
Deprecated.- Parameters:
graphQL-options- options for configuring theApolloWSOptions- Returns:
-
getMessage
@Deprecated public static ApolloWSMessage getMessage(graphql.GraphQLContext graphQlContext)
Deprecated.- Parameters:
graphQlContext- the GraphQL context object- Returns:
- the
ApolloWSMessage
-
dataLoaderRegistry
@Deprecated public ApolloWSHandler dataLoaderRegistry(Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)instead- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
locale
@Deprecated public ApolloWSHandler locale(Function<ApolloWSMessage,Locale> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)instead- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
accept
public void accept(io.vertx.mutiny.ext.web.RoutingContext item)
-
newInstance
public static ApolloWSHandler newInstance(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg)
-
-