Enum Class NetconfLayer
- All Implemented Interfaces:
Serializable
,Comparable<NetconfLayer>
,Constable
Enumeration of NETCONF layers, as established in
NETCONF. This enumeration exists because its
semantics are implied by RFC6020 references to
error-tag
and its XML encoding.
This enumeration corresponds to the Layer
in:
NETCONF can be conceptually partitioned into four layers:
Layer Example
+-------------+ +-----------------------------+
(4) | Content | | Configuration data |
+-------------+ +-----------------------------+
| |
+-------------+ +-----------------------------+
(3) | Operations | | <get-config>, <edit-config> |
+-------------+ +-----------------------------+
| |
+-------------+ +-----------------------------+
(2) | RPC | | <rpc>, <rpc-reply> |
+-------------+ +-----------------------------+
| |
+-------------+ +-----------------------------+
(1) | Transport | | BEEP, SSH, SSL, console |
| Protocol | | |
+-------------+ +-----------------------------+
as acknowledged in RFC6241:
The YANG data modeling language [RFC6020] has been developed for specifying NETCONF data models and protocol operations, covering the Operations and the Content layers of Figure 1.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionContent layer, for example configuration data.Operations layer, for example<get-config>
,<edit-config>
configuration data.RPC layer, for example<rpc>
,<rpc-reply>
.Transport protocol layer, for example BEEP, SSH, TLS, console. -
Method Summary
Modifier and TypeMethodDescriptionstatic NetconfLayer
Returns the enum constant of this class with the specified name.static NetconfLayer[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTENT
Content layer, for example configuration data. This layer is implied indirectly in all YANG-based validation and corresponds toErrorType.APPLICATION
-
OPERATIONS
Operations layer, for example<get-config>
,<edit-config>
configuration data. This corresponds toErrorType.PROTOCOL
. -
RPC
-
TRANSPORT
Transport protocol layer, for example BEEP, SSH, TLS, console. This corresponds toErrorType.TRANSPORT
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-