getConfigKeysMatchingPattern
Map<String,List<String>> getConfigKeysMatchingPattern(String pattern)
Provides config settings which match the given key pattern.
The pattern is the same pattern used for configuration permissions.
Some examples are:
pattern 'a.*' matches 'a.foo' but does not match 'a.foo.bar'
pattern 'a.*.*' matches 'a.foo.bar' but does not match 'a.foo'
The key within the returned map is the full key and the value is a
list of the parameters for the key. For example if config has:
'a.foo.bar' and 'a.b.c' and the pattern is 'a.*.*' the resulting map
will contain:
'a.foo.bar': ["foo", "bar"]
'a.b.c': ["a", "b"]
Note that if the config key contains '.' or '\' it will be escaped as
it is in config. For example if config contains 'a.c:\\bar\.jpg' then
for the pattern 'a.*' the resulting map would contain:
'a.c:\\bar\.jpg': ["c:\bar.jpg"]
The key remains escaped however the paramaters in the list are left unescaped.
- Parameters:
pattern
-
- Returns:
- a map of all matching config keys where the key in the map is the config key
and the value is a list of all parameters.