Class GraphQLHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.graphql.GraphQLHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>

public class GraphQLHandler extends Object implements MutinyDelegate, io.vertx.core.Handler<RoutingContext>, Consumer<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 Details

  • Constructor Details

    • GraphQLHandler

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

      public GraphQLHandler(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.graphql.GraphQLHandler getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

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

      @Deprecated public GraphQLHandler queryContext(Function<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
    • beforeExecute

      Deprecated.
      as of 4.5.1, use builder(GraphQL) instead
      Parameters:
      config - the callback to invoke
      Returns:
    • 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:
    • builder

      public static GraphQLHandlerBuilder builder(graphql.GraphQL graphQL)
      Parameters:
      graphQL -
      Returns:
    • getRoutingContext

      @Deprecated public static 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<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.
      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 interface Consumer<RoutingContext>
    • newInstance

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