Class RestConfConfigUtils
java.lang.Object
io.lighty.modules.northbound.restconf.community.impl.util.RestConfConfigUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic RestConfConfigurationGet default RestConf configuration, Lighty services are not populated in this configuration.static RestConfConfigurationgetDefaultRestConfConfiguration(LightyServices lightyServices) Get default RestConf configuration using provided Lighty services.static RestConfConfigurationgetRestConfConfiguration(RestConfConfiguration restConfConfiguration, LightyServices lightyServices) Copy existing RestConf configuration and use provided lightyServices to populate references to necessary Lighty services.static RestConfConfigurationgetRestConfConfiguration(InputStream jsonConfigInputStream) Load restconf configuration from InputStream containing JSON data.static RestConfConfigurationgetRestConfConfiguration(InputStream jsonConfigInputStream, LightyServices lightyServices) Load restconf configuration from InputStream containing JSON data and use lightyServices to get references to necessary Lighty services.static org.opendaylight.restconf.nb.rfc8040.streams.Configuration
-
Field Details
-
RESTCONF_CONFIG_ROOT_ELEMENT_NAME
- See Also:
-
YANG_MODELS
-
MAXIMUM_FRAGMENT_LENGTH
public static final int MAXIMUM_FRAGMENT_LENGTH- See Also:
-
IDLE_TIMEOUT
public static final int IDLE_TIMEOUT- See Also:
-
HEARTBEAT_INTERVAL
public static final int HEARTBEAT_INTERVAL- See Also:
-
USE_SSE
public static final boolean USE_SSE- See Also:
-
-
Method Details
-
getRestConfConfiguration
public static RestConfConfiguration getRestConfConfiguration(InputStream jsonConfigInputStream) throws ConfigurationException Load restconf configuration from InputStream containing JSON data.- Parameters:
jsonConfigInputStream- InputStream containing RestConf configuration data in JSON format.- Returns:
- Object representation of configuration data.
- Throws:
ConfigurationException- In case InputStream does not contain valid JSON data or cannot bind Json tree to type.
-
getRestConfConfiguration
public static RestConfConfiguration getRestConfConfiguration(InputStream jsonConfigInputStream, LightyServices lightyServices) throws ConfigurationException Load restconf configuration from InputStream containing JSON data and use lightyServices to get references to necessary Lighty services.- Parameters:
jsonConfigInputStream- InputStream containing RestConf configuration data in JSON format.lightyServices- This object instace contains references to initialized Lighty services required for RestConf.- Returns:
- Object representation of configuration data.
- Throws:
ConfigurationException- In case InputStream does not contain valid JSON data or cannot bind Json tree to type.
-
getRestConfConfiguration
public static RestConfConfiguration getRestConfConfiguration(RestConfConfiguration restConfConfiguration, LightyServices lightyServices) Copy existing RestConf configuration and use provided lightyServices to populate references to necessary Lighty services.- Parameters:
restConfConfiguration- Object representation of configuration data.lightyServices- This object instace contains references to initialized Lighty services required for RestConf.- Returns:
- Object representation of configuration data.
-
getDefaultRestConfConfiguration
Get default RestConf configuration using provided Lighty services.- Parameters:
lightyServices- This object instace contains references to initialized Lighty services required for RestConf.- Returns:
- Object representation of configuration data.
-
getDefaultRestConfConfiguration
Get default RestConf configuration, Lighty services are not populated in this configuration.- Returns:
- Object representation of configuration data.
-
getStreamsConfiguration
public static org.opendaylight.restconf.nb.rfc8040.streams.Configuration getStreamsConfiguration()
-