Class 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's subscriptions-transport-ws transport.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • 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:
        getDelegate in interface io.vertx.mutiny.ext.web.handler.ProtocolUpgradeHandler
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • handle

        @Deprecated
        public void handle​(io.vertx.mutiny.ext.web.RoutingContext arg0)
        Deprecated.
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.mutiny.ext.web.RoutingContext>
        Specified by:
        handle in interface io.vertx.mutiny.ext.web.handler.ProtocolUpgradeHandler
      • connectionHandler

        @Deprecated
        public ApolloWSHandler connectionHandler​(Consumer<io.vertx.mutiny.core.http.ServerWebSocket> connectionHandler)
        Deprecated.
        Parameters:
        connectionHandler -
        Returns:
      • endHandler

        @Deprecated
        public ApolloWSHandler endHandler​(Consumer<io.vertx.mutiny.core.http.ServerWebSocket> endHandler)
        Deprecated.
        Parameters:
        endHandler -
        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 the ApolloWSOptions
        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
      • accept

        public void accept​(io.vertx.mutiny.ext.web.RoutingContext item)
        Specified by:
        accept in interface Consumer<io.vertx.mutiny.ext.web.RoutingContext>
        Specified by:
        accept in interface io.vertx.mutiny.ext.web.handler.ProtocolUpgradeHandler
      • newInstance

        public static ApolloWSHandler newInstance​(io.vertx.ext.web.handler.graphql.ApolloWSHandler arg)