Package io.smallrye.graphql.client.impl
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 Summary
Constructors Constructor Description GraphQLClientsConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddClient(String key, GraphQLClientConfiguration config)this method is required by QuarkusvoidaddTypesafeClientApis(List<Class<?>> apis)Deprecated.static voidclear()GraphQLClientConfigurationgetClient(String key)Map<String,GraphQLClientConfiguration>getClients()static Map<String,String>getConfiguredHeaders(String configKey, org.eclipse.microprofile.config.Config config)All headers that where configured via MP Config, e.g.static Map<String,Object>getConfiguredInitPayload(String configKey, org.eclipse.microprofile.config.Config config)All headers that where configured via MP Config, e.g.static GraphQLClientsConfigurationgetInstance()voidinitTypesafeClientApi(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.
-
-
-
Method Detail
-
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)
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
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.
-
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
-
-