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 Summary
Modifier and TypeMethodDescriptiongetPlainTextResource(String path) Retrieves a plain text config file using the defaults profiles and labels.getPlainTextResource(String profile, String label, String path) Retrieves a plain text config file.
-
Method Details
-
getPlainTextResource
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
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.
-