Interface PlainTextConfigClient

All Known Subinterfaces:
ConfigResourceClient

public interface PlainTextConfigClient
Provides access to plain text configuration files served by a Spring Cloud Config Server.
Author:
Daniel Lavoie
  • Method Details

    • getPlainTextResource

      Resource getPlainTextResource(String path)
      Retrieves a plain text config file using the defaults profiles and labels.
      Parameters:
      path - config file path relative to spring application folder
      Returns:
      plain text file retrieved from config server
      Throws:
      IllegalArgumentException - when application name or Config Server url is undefined.
      HttpClientErrorException - when a config file is not found.
    • getPlainTextResource

      Resource getPlainTextResource(String profile, String label, String path)
      Retrieves a plain text config file.
      Throws:
      IllegalArgumentException - when application name or Config Server url is undefined.
      HttpClientErrorException - when a config file is not found.