Class ApolloWSHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.graphql.ApolloWSHandler
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<RoutingContext>,ProtocolUpgradeHandler,Consumer<RoutingContext>
public class ApolloWSHandler
extends Object
implements MutinyDelegate, ProtocolUpgradeHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
A handler for GraphQL requests sent over Apollo's
subscriptions-transport-ws transport.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApolloWSHandler(io.vertx.ext.web.handler.graphql.ApolloWSHandler delegate) ApolloWSHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Deprecated.connectionHandler(Consumer<ServerWebSocket> connectionHandler) Deprecated.connectionInitHandler(Consumer<ApolloWSConnectionInitEvent> connectionInitHandler) Deprecated.static ApolloWSHandlercreate(graphql.GraphQL graphQL) Deprecated.static ApolloWSHandlercreate(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ApolloWSOptions options) Deprecated.dataLoaderRegistry(Function<ApolloWSMessage, org.dataloader.DataLoaderRegistry> factory) Deprecated.endHandler(Consumer<ServerWebSocket> endHandler) Deprecated.booleanio.vertx.ext.web.handler.graphql.ApolloWSHandlerstatic ApolloWSMessagegetMessage(graphql.GraphQLContext graphQlContext) Deprecated.voidhandle(RoutingContext arg0) Deprecated.inthashCode()locale(Function<ApolloWSMessage, Locale> factory) Deprecated.as of 4.2, use#beforeExecute(Handler)insteadmessageHandler(Consumer<ApolloWSMessage> messageHandler) Deprecated.static ApolloWSHandlernewInstance(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg) queryContext(Function<ApolloWSMessage, Object> factory) Deprecated.as of 4.2, use#beforeExecute(Handler)insteadtoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ApolloWSHandler
public ApolloWSHandler(io.vertx.ext.web.handler.graphql.ApolloWSHandler delegate) -
ApolloWSHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.graphql.ApolloWSHandler getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfaceProtocolUpgradeHandler- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
Deprecated.- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein interfaceProtocolUpgradeHandler
-
connectionHandler
Deprecated.- Parameters:
connectionHandler-- Returns:
-
connectionInitHandler
@Deprecated public ApolloWSHandler connectionInitHandler(Consumer<ApolloWSConnectionInitEvent> connectionInitHandler) Deprecated.- Parameters:
connectionInitHandler-- Returns:
-
messageHandler
Deprecated.- Parameters:
messageHandler-- Returns:
-
endHandler
Deprecated.- Parameters:
endHandler-- Returns:
-
queryContext
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.- 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.- 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.as of 4.2, use#beforeExecute(Handler)instead- Parameters:
factory-- Returns:
- a reference to this, so the API can be used fluently
-
accept
- Specified by:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfaceProtocolUpgradeHandler
-
newInstance
-
#beforeExecute(Handler)instead