public final class Configurations extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
asStringMap(com.sdl.delivery.configuration.RepositoryObject repositoryObject,
String keyFragment)
Returns a map of child keys and values that begin with the provided key fragment.
|
public static Map<String,String> asStringMap(com.sdl.delivery.configuration.RepositoryObject repositoryObject, String keyFragment)
A key value fragment is the initial part of a key which is terminated with a "." character. For example valid key fragments for property key "module1.submodule1.property1" would be "module1" and "module.submodule1".
The child keys returned in the map will have the key fragment prefix removed. For example, if the RepositoryObject contained the property values
context.resolvers.discover.cookieName = "cookie" context.resolvers.discover.subModule.name = "Fred" context.resolvers.discover.subModule.age = 38
and the keyFragment "context.resolvers.discover.subModule" was specified then the following values would be returned
name = "Fred" age = 38
repositoryObject
- the repository objectkeyFragment
- the key fragmentCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries