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 io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
A Route handler for GraphQL requests.

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

Author:
Thomas Segismont
See Also:
  • GraphQLHandler
  • Field Details

  • Constructor Details

    • GraphQLHandler

      public GraphQLHandler(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate)
      Create a new instance of GraphQLHandler delegating to the given (non-null) instance of GraphQLHandler.
    • GraphQLHandler

      public GraphQLHandler(Object delegate)
  • Method Details

    • accept

      public void accept(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      accept in interface Consumer<RoutingContext>
    • handle

      public void handle(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
    • getDelegate

      public io.vertx.ext.web.handler.graphql.GraphQLHandler getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • 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 options.

    • 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:
      options - options for configuring the GraphQLHandler
    • builder

      public static GraphQLHandlerBuilder builder(graphql.GraphQL graphQL)
      Create a new GraphQLHandlerBuilder that will use the provided graphQL to build a GraphQLHandler.

      The handler will be configured with default options.

    • newInstance

      public static GraphQLHandler newInstance(io.vertx.ext.web.handler.graphql.GraphQLHandler delegate)
      Creates a new instance of the GraphQLHandler.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object