Class GraphQLHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<RoutingContext>

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

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

    • Constructor Detail

      • GraphQLHandler

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

        public GraphQLHandler​(Object delegate)
    • Method Detail

      • hashCode

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

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

        public void handle​(RoutingContext event)
        Something has happened, so handle it.
        Specified by:
        handle in interface io.vertx.core.Handler<RoutingContext>
        Parameters:
        event - the event to handle
      • queryContext

        @Deprecated
        public GraphQLHandler queryContext​(Function<RoutingContext,​Object> factory)
        Deprecated.
        Customize the query context object. The provided factory method will be invoked for each incoming GraphQL request.
        Parameters:
        factory -
        Returns:
        a reference to this, so the API can be used fluently
      • create

        public static GraphQLHandler create​(graphql.GraphQL graphQL)
        Create a new GraphQLHandler that will use the provided graphQL object to execute queries.

        The handler will be configured with default GraphQLHandlerOptions.

        Parameters:
        graphQL -
        Returns:
      • create

        public static GraphQLHandler create​(graphql.GraphQL graphQL,
                                            io.vertx.ext.web.handler.graphql.GraphQLHandlerOptions options)
        Create a new GraphQLHandler that will use the provided graphQL object to execute queries.

        The handler will be configured with the given options.

        Parameters:
        graphQL -
        options - options for configuring the GraphQLHandler
        Returns:
      • getRoutingContext

        @Deprecated
        public static RoutingContext getRoutingContext​(graphql.GraphQLContext graphQlContext)
        Deprecated.
        Retrieves the from the .
        Parameters:
        graphQlContext - the GraphQL context object
        Returns:
        the
      • dataLoaderRegistry

        @Deprecated
        public GraphQLHandler dataLoaderRegistry​(Function<RoutingContext,​org.dataloader.DataLoaderRegistry> factory)
        Deprecated.
        Customize the . The provided factory method will be invoked for each incoming GraphQL request.
        Parameters:
        factory -
        Returns:
        a reference to this, so the API can be used fluently
      • locale

        @Deprecated
        public GraphQLHandler locale​(Function<RoutingContext,​Locale> factory)
        Deprecated.
        Customize the passed to the GraphQL execution engine. The provided factory method will be invoked for each incoming GraphQL request.
        Parameters:
        factory -
        Returns:
        a reference to this, so the API can be used fluently
      • newInstance

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