public interface EnvironmentParser
ConfigSource.
The methods are called in order:
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Pair<java.lang.String,java.lang.String>> |
filter(Pair<java.lang.String,java.lang.String> entry)
Provides an opportunity to remove environment variables from parsing by the remainder of the pipeline.
|
java.lang.String |
map(java.lang.String segment)
Transforms a segment.
|
java.util.List<java.lang.String> |
tokenize(java.lang.String name)
Splits the name of an environment variable into per-object segments.
|
java.util.stream.Stream<Pair<java.lang.String,java.lang.String>> filter(Pair<java.lang.String,java.lang.String> entry) throws java.lang.Exception
entry - an environment variable, encoded with the name on the left and the value on the rightjava.lang.Exception - anyPair.mapLeft(ratpack.func.Function)java.util.List<java.lang.String> tokenize(java.lang.String name)
throws java.lang.Exception
SERVER__URL to mean an object "SERVER" and a field "URL", you would return a two element list ["SERVER", "URL"].name - the name of the environment variablejava.lang.Exception - anyjava.lang.String map(java.lang.String segment)
throws java.lang.Exception
segment - a segment of the object pathjava.lang.Exception - anyCaseFormat