Class GraphQLClientsConfiguration

java.lang.Object
io.smallrye.graphql.client.impl.GraphQLClientsConfiguration

public class GraphQLClientsConfiguration extends Object
The wrapper that stores configuration of all GraphQL clients.
  • Constructor Details

    • GraphQLClientsConfiguration

      public GraphQLClientsConfiguration()
  • Method Details

    • setSingleApplication

      public static void setSingleApplication(boolean singleApplication)
      This needs to be set to true if the runtime only supports a single deployment.
    • getInstance

      public static GraphQLClientsConfiguration getInstance()
    • clear

      public static void clear()
    • addTypesafeClientApis

      @Deprecated public void addTypesafeClientApis(List<Class<?>> apis)
      Scan the passed Java interfaces for `@GraphQLClientApi` annotations and create and register client configuration objects for them. This needs to be called by the runtime some time during initialization, before clients are actually created.
    • initTypesafeClientApi

      public void initTypesafeClientApi(Class<?> api)
      Scan the passed Java interface for `@GraphQLClientApi` annotations and create and register client configuration objects for it. This needs to be called by the runtime some time during initialization, before clients are actually created. Properties from the annotation will be overridden by application.properties.
    • getClient

      public GraphQLClientConfiguration getClient(String key)
    • getClients

      public Map<String,GraphQLClientConfiguration> getClients()
    • addClient

      public void addClient(String key, GraphQLClientConfiguration config)
      this method is required by Quarkus
    • getConfiguredHeaders

      public static Map<String,String> getConfiguredHeaders(String configKey, org.eclipse.microprofile.config.Config config)
      All headers that where configured via MP Config, e.g. xxx/mp-graphql/header/yyy = zzz
    • getConfiguredInitPayload

      public static Map<String,Object> getConfiguredInitPayload(String configKey, org.eclipse.microprofile.config.Config config)
      All headers that where configured via MP Config, e.g. xxx/mp-graphql/initPayload/yyy = zzz