Package io.smallrye.graphql.client.impl
Class GraphQLClientsConfiguration
java.lang.Object
io.smallrye.graphql.client.impl.GraphQLClientsConfiguration
The wrapper that stores configuration of all GraphQL clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClient(String key, GraphQLClientConfiguration config) this method is required by QuarkusvoidaddTypesafeClientApis(List<Class<?>> apis) Deprecated.static voidclear()getConfiguredHeaders(String configKey, org.eclipse.microprofile.config.Config config) All headers that where configured via MP Config, e.g.getConfiguredInitPayload(String configKey, org.eclipse.microprofile.config.Config config) All headers that where configured via MP Config, e.g.static GraphQLClientsConfigurationvoidinitTypesafeClientApi(Class<?> api) Scan the passed Java interface for `@GraphQLClientApi` annotations and create and register client configuration objects for it.static voidsetSingleApplication(boolean singleApplication) This needs to be set to true if the runtime only supports a single deployment.
-
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
-
clear
public static void clear() -
addTypesafeClientApis
Deprecated.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
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 byapplication.properties. -
getClient
-
getClients
-
addClient
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
-
initTypesafeClientApi(Class)