Class ApolloWSHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.graphql.ApolloWSHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
,ProtocolUpgradeHandler
,Consumer<RoutingContext>
public class ApolloWSHandler extends Object implements ProtocolUpgradeHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
A handler for GraphQL requests sent over Apollo'ssubscriptions-transport-ws
transport. NOTE: This class has been automatically generated from theoriginal
non Mutiny-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 void
accept(RoutingContext item)
ApolloWSHandler
beforeExecute(Consumer<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
ApolloWSHandler
connectionHandler(Consumer<ServerWebSocket> connectionHandler)
ApolloWSHandler
connectionInitHandler(Consumer<ApolloWSConnectionInitEvent> connectionInitHandler)
static ApolloWSHandler
create(graphql.GraphQL graphQL)
static ApolloWSHandler
create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ApolloWSOptions options)
ApolloWSHandler
dataLoaderRegistry(Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
insteadApolloWSHandler
endHandler(Consumer<ServerWebSocket> endHandler)
boolean
equals(Object o)
io.vertx.ext.web.handler.graphql.ApolloWSHandler
getDelegate()
static ApolloWSMessage
getMessage(graphql.GraphQLContext graphQlContext)
void
handle(RoutingContext arg0)
int
hashCode()
ApolloWSHandler
locale(Function<ApolloWSMessage,Locale> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
insteadApolloWSHandler
messageHandler(Consumer<ApolloWSMessage> messageHandler)
static ApolloWSHandler
newInstance(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg)
ApolloWSHandler
queryContext(Function<ApolloWSMessage,Object> factory)
Deprecated.as of 4.2, use#beforeExecute(Handler)
insteadString
toString()
-
-
-
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:
getDelegate
in interfaceProtocolUpgradeHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in interfaceProtocolUpgradeHandler
-
connectionHandler
public ApolloWSHandler connectionHandler(Consumer<ServerWebSocket> connectionHandler)
- Parameters:
connectionHandler
-- Returns:
-
connectionInitHandler
public ApolloWSHandler connectionInitHandler(Consumer<ApolloWSConnectionInitEvent> connectionInitHandler)
- Parameters:
connectionInitHandler
-- Returns:
-
messageHandler
public ApolloWSHandler messageHandler(Consumer<ApolloWSMessage> messageHandler)
- Parameters:
messageHandler
-- Returns:
-
endHandler
public ApolloWSHandler endHandler(Consumer<ServerWebSocket> endHandler)
- 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
public ApolloWSHandler beforeExecute(Consumer<ExecutionInputBuilderWithContext<ApolloWSMessage>> config)
- Parameters:
config
- the callback to invoke- Returns:
-
create
public static ApolloWSHandler create(graphql.GraphQL graphQL)
- Parameters:
graphQL
-- Returns:
-
create
public static ApolloWSHandler create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ApolloWSOptions options)
- Parameters:
graphQL
-options
- options for configuring theApolloWSOptions
- Returns:
-
getMessage
public static ApolloWSMessage getMessage(graphql.GraphQLContext graphQlContext)
- 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(RoutingContext item)
- Specified by:
accept
in interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfaceProtocolUpgradeHandler
-
newInstance
public static ApolloWSHandler newInstance(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg)
-
-