Class GraphQLHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<io.vertx.mutiny.ext.web.RoutingContext>, Consumer<io.vertx.mutiny.ext.web.RoutingContext>

    public class GraphQLHandler
    extends Object
    implements io.vertx.core.Handler<io.vertx.mutiny.ext.web.RoutingContext>, Consumer<io.vertx.mutiny.ext.web.RoutingContext>
    A Route handler for GraphQL requests.

    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<GraphQLHandler> __TYPE_ARG
    • Constructor Detail

      • GraphQLHandler

        public GraphQLHandler​(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate)
      • GraphQLHandler

        public GraphQLHandler​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.web.handler.graphql.GraphQLHandler getDelegate()
      • hashCode

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

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

        @Deprecated
        public GraphQLHandler queryContext​(Function<io.vertx.mutiny.ext.web.RoutingContext,​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
      • create

        public static GraphQLHandler create​(graphql.GraphQL graphQL)
        Parameters:
        graphQL -
        Returns:
      • create

        public static GraphQLHandler create​(graphql.GraphQL graphQL,
                                            io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions options)
        Parameters:
        graphQL -
        options - options for configuring the GraphQLHandler
        Returns:
      • getRoutingContext

        @Deprecated
        public static io.vertx.mutiny.ext.web.RoutingContext getRoutingContext​(graphql.GraphQLContext graphQlContext)
        Deprecated.
        invoke GraphQLContext.get(Object) with RoutingContext class object instead.
        Parameters:
        graphQlContext - the GraphQL context object
        Returns:
        the
      • dataLoaderRegistry

        @Deprecated
        public GraphQLHandler dataLoaderRegistry​(Function<io.vertx.mutiny.ext.web.RoutingContext,​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 GraphQLHandler locale​(Function<io.vertx.mutiny.ext.web.RoutingContext,​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)
        Specified by:
        accept in interface Consumer<io.vertx.mutiny.ext.web.RoutingContext>
      • newInstance

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