Modifier and Type | Method and Description |
---|---|
static List<ProxyMapping> |
loadProxyMappings(String yamlConfig,
Object servletContextOrPortletContext)
Loads list of
ProxyMapping objects from the yamlConfig . |
static Iterable<Object> |
loadYaml(org.yaml.snakeyaml.constructor.BaseConstructor constructor,
String yamlConfig,
Object servletContextOrPortletContext)
Loads YAML objects from the
yamlConfig . |
public static Iterable<Object> loadYaml(org.yaml.snakeyaml.constructor.BaseConstructor constructor, String yamlConfig, Object servletContextOrPortletContext)
yamlConfig
.
The yamlConfig
can represent any of the following:
yamlConfig
is regarded as a whole YAML configuration string.
Note: if yamlConfig
represents an external resource (file resource URI, classpath resource or
or servlet context relative path resource), then the resource must be encoded in UTF-8.
constructor
- snakeyaml base constructor to be used when constructing a Yaml
yamlConfig
- YAML configuration resource or stringservletContextOrPortletContext
- either a ServletContext
or PortletContext
instance.yamlConfig
.public static List<ProxyMapping> loadProxyMappings(String yamlConfig, Object servletContextOrPortletContext)
ProxyMapping
objects from the yamlConfig
.yamlConfig
- YAML configuration resource or stringservletContextOrPortletContext
- either a ServletContext
or PortletContext
instance.ProxyMapping
objects from the yamlConfig
.Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.