Package io.quarkus.restclient.config
Interface RestClientsBuildTimeConfig
@ConfigMapping(prefix="quarkus.rest-client")
@ConfigRoot(phase=BUILD_TIME)
public interface RestClientsBuildTimeConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionclients()Configurations of REST client instances.default RestClientsBuildTimeConfigget(List<RegisteredRestClient> restClients) Provides a newRestClientsBuildTimeConfigwith the discovered registered REST Clients configuration only.default io.smallrye.config.SmallRyeConfiggetConfig(List<RegisteredRestClient> restClients) booleanIf true, the extension will automatically remove the trailing slash in the paths if any.
-
Method Details
-
clients
@WithParentName @WithDefaults Map<String,RestClientsBuildTimeConfig.RestClientBuildConfig> clients()Configurations of REST client instances. -
removesTrailingSlash
@WithName("removes-trailing-slash") @WithDefault("true") boolean removesTrailingSlash()If true, the extension will automatically remove the trailing slash in the paths if any. This property is not applicable to the RESTEasy Client. -
get
Provides a newRestClientsBuildTimeConfigwith the discovered registered REST Clients configuration only. This should be preferred once REST Clients are discovered and validated to keep only the required configuration.This has to be done manually, because the
RestClientsBuildTimeConfigis marked forConfigPhase.BUILD_TIME, and the REST Clients are not known when the configuration starts.- Parameters:
restClients- the discovered registered REST Clients.- Returns:
- a
RestClientsBuildTimeConfigwith the discovered registered REST Clients configuration only.
-
getConfig
-