Class GraphQLWSHandler

    • Constructor Detail

      • GraphQLWSHandler

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

        public GraphQLWSHandler​(Object delegate)
    • Method Detail

      • hashCode

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

        public GraphQLWSHandler connectionInitHandler​(io.vertx.core.Handler<ConnectionInitEvent> connectionInitHandler)
        Customize the connection init . This handler will be called when the message is received.
        Parameters:
        connectionInitHandler -
        Returns:
        a reference to this, so the API can be used fluently
      • beforeExecute

        public GraphQLWSHandler beforeExecute​(io.vertx.core.Handler<ExecutionInputBuilderWithContext<Message>> config)
        Set a callback to invoke before executing a GraphQL query.
        Parameters:
        config - the callback to invoke
        Returns:
        a reference to this, so the API can be used fluently
      • 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.

        Parameters:
        graphQL -
        Returns:
      • 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:
        graphQL -
        options - options for configuring the GraphQLWSOptions
        Returns:
      • newInstance

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