Class GraphiQLHandlerBuilder

java.lang.Object
io.vertx.mutiny.ext.web.handler.graphql.GraphiQLHandlerBuilder
All Implemented Interfaces:
MutinyDelegate

public class GraphiQLHandlerBuilder extends Object implements MutinyDelegate
A builder for GraphiQLHandler instances.

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

See Also:
  • GraphiQLHandlerBuilder
  • Field Details

  • Constructor Details

    • GraphiQLHandlerBuilder

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

      public GraphiQLHandlerBuilder(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.graphql.GraphiQLHandlerBuilder 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
    • with

      public GraphiQLHandlerBuilder with(io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions options)
      Change the GraphiQLHandlerOptions to use.
      Returns:
      a reference to this, so the API can be used fluently
    • addingHeaders

      public GraphiQLHandlerBuilder addingHeaders(Function<RoutingContext,io.vertx.core.MultiMap> factory)
      Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface. The result will be applied on top of the fixed set of headers specified in GraphiQLHandlerOptions.getHeaders().

      This can be useful if, for example, the server is protected by authentication.

      Returns:
      a reference to this, so the API can be used fluently
    • build

      public GraphiQLHandler build()
      Returns:
      a new instance of GraphiQLHandler
    • newInstance

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