public final class RestConfConfigUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RESTCONF_CONFIG_ROOT_ELEMENT_NAME |
static Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> |
YANG_MODELS |
| Modifier and Type | Method and Description |
|---|---|
static RestConfConfiguration |
getDefaultRestConfConfiguration()
Get default RestConf configuration, Lighty services are not populated in this configuration.
|
static RestConfConfiguration |
getDefaultRestConfConfiguration(LightyServices lightyServices)
Get default RestConf configuration using provided Lighty services.
|
static RestConfConfiguration |
getRestConfConfiguration(InputStream jsonConfigInputStream)
Load restconf configuration from InputStream containing JSON data.
|
static RestConfConfiguration |
getRestConfConfiguration(InputStream jsonConfigInputStream,
LightyServices lightyServices)
Load restconf configuration from InputStream containing JSON data and use lightyServices to
get references to necessary Lighty services.
|
static RestConfConfiguration |
getRestConfConfiguration(RestConfConfiguration restConfConfiguration,
LightyServices lightyServices)
Copy existing RestConf configuration and use provided lightyServices
to populate references to necessary Lighty services.
|
public static final String RESTCONF_CONFIG_ROOT_ELEMENT_NAME
public static final Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> YANG_MODELS
public static RestConfConfiguration getRestConfConfiguration(InputStream jsonConfigInputStream) throws ConfigurationException
jsonConfigInputStream - InputStream containing RestConf configuration data in JSON format.ConfigurationException - In case InputStream does not contain valid JSON data or cannot bind Json tree to type.public static RestConfConfiguration getRestConfConfiguration(InputStream jsonConfigInputStream, LightyServices lightyServices) throws ConfigurationException
jsonConfigInputStream - InputStream containing RestConf configuration data in JSON format.lightyServices - This object instace contains references to initialized Lighty services required for RestConf.ConfigurationException - In case InputStream does not contain valid JSON data or cannot bind Json tree to type.public static RestConfConfiguration getDefaultRestConfConfiguration(LightyServices lightyServices)
lightyServices - This object instace contains references to initialized Lighty services required for RestConf.public static RestConfConfiguration getDefaultRestConfConfiguration()
public static RestConfConfiguration getRestConfConfiguration(RestConfConfiguration restConfConfiguration, LightyServices lightyServices)
restConfConfiguration - Object representation of configuration data.lightyServices - This object instace contains references to initialized Lighty services required for RestConf.Copyright © 2020. All rights reserved.