Interface GqlQuery<R extends GqlQueryResult>

  • Type Parameters:
    R - The query result type mirroring the fields and structure of the query
    All Superinterfaces:
    GqlType, manifold.ext.rt.api.IBindingsBacked, manifold.json.rt.api.IJsonBindingsBacked, Serializable

    public interface GqlQuery<R extends GqlQueryResult>
    extends GqlType
    A base class for all GraphQL queries.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Executor<R> request​(String url)
      Provides an HTTP request executor for the query.
      Executor<R> request​(Supplier<manifold.json.rt.api.Requester<manifold.rt.api.Bindings>> requester)
      Provides an HTTP request executor for the query.
      Executor<R> request​(manifold.json.rt.api.Endpoint endpoint)
      Provides an HTTP request executor for the query.
      • Methods inherited from interface manifold.ext.rt.api.IBindingsBacked

        display
      • Methods inherited from interface manifold.json.rt.api.IJsonBindingsBacked

        getBindings, write, writeReplace
    • Method Detail

      • request

        Executor<R> request​(String url)
        Provides an HTTP request executor for the query. Use it to configure an HTTP request headers, authorization, etc. and to GET or POST the query.
        Parameters:
        url - The endpoint of the request as a URL.
        Returns:
        The request executor in terms of the query result type.
      • request

        Executor<R> request​(manifold.json.rt.api.Endpoint endpoint)
        Provides an HTTP request executor for the query. Use it to configure an HTTP request headers, authorization, etc. and to GET or POST the query.
        Parameters:
        endpoint - The endpoint of the request as proxy-enabled URL.
        Returns:
        The request executor in terms of the query result type.
      • request

        Executor<R> request​(Supplier<manifold.json.rt.api.Requester<manifold.rt.api.Bindings>> requester)
        Provides an HTTP request executor for the query. Use it to configure an HTTP request headers, authorization, etc. and to GET or POST the query.
        Parameters:
        requester - A callback allowing the caller to supply a Requester, typically to the request can be reused across multiple query executions.
        Returns:
        The request executor in terms of the query result type.