Class GraphQLWSHandler

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

public class GraphQLWSHandler extends Object implements io.vertx.core.Handler<RoutingContext>, ProtocolUpgradeHandler, Consumer<RoutingContext>, MutinyDelegate
A handler for the GraphQL over WebSocket Protocol.

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

See Also:
  • GraphQLWSHandler
  • Field Details

  • Constructor Details

    • GraphQLWSHandler

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

      public GraphQLWSHandler(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>
      Specified by:
      accept in interface ProtocolUpgradeHandler
    • 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>
      Specified by:
      handle in interface ProtocolUpgradeHandler
    • getDelegate

      public io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler 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
      Specified by:
      getDelegate in interface ProtocolUpgradeHandler
      Returns:
      the delegate instance
    • create

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

      The handler will be configured with the default GraphQLWSOptions.

    • create

      public static GraphQLWSHandler create(graphql.GraphQL graphQL, io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options)
      Create a new GraphQLWSHandler that will use the provided graphQL object to execute requests.

      The handler will be configured with the given options.

      Parameters:
      options - options for configuring the GraphQLWSOptions
    • builder

      public static GraphQLWSHandlerBuilder builder(graphql.GraphQL graphQL)
      Create a new GraphQLWSHandlerBuilder that will use the provided graphQL to build a GraphQLWSHandler.
    • newInstance

      public static GraphQLWSHandler newInstance(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler delegate)
      Creates a new instance of the GraphQLWSHandler.
    • 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