Interface RestClientsBuildTimeConfig


@ConfigMapping(prefix="quarkus.rest-client") @ConfigRoot(phase=BUILD_TIME) public interface RestClientsBuildTimeConfig
  • 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 new RestClientsBuildTimeConfig with 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 RestClientsBuildTimeConfig is marked for ConfigPhase.BUILD_TIME, and the REST Clients are not known when the configuration starts.

      Parameters:
      restClients - the discovered registered REST Clients.
      Returns:
      a RestClientsBuildTimeConfig with the discovered registered REST Clients configuration only.
    • getConfig

      default io.smallrye.config.SmallRyeConfig getConfig(List<RegisteredRestClient> restClients)