Class GraphQLClientsConfiguration


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

      • GraphQLClientsConfiguration

        public GraphQLClientsConfiguration()
    • Method Detail

      • setSingleApplication

        public static void setSingleApplication​(boolean singleApplication)
        This needs to be set to true if the runtime only supports a single deployment.
      • 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.
      • 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