Allow RestconfStream to advertize multiple encodings 50/108850/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 4 Nov 2023 00:03:23 +0000 (01:03 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 4 Nov 2023 00:08:02 +0000 (01:08 +0100)
commit728ee584b6360fe0d7771784ac020abd9c52bf3b
tree4336c6f3fcff9745a65f110c2abc1301ccbcafdb
parent9626a275026042d03c3583bcb99eba1f10f34e60
Allow RestconfStream to advertize multiple encodings

Each stream can have multiple encodings -- which we currently do not
support, as we have a singular outputType.

Introduce EncodingName and the ability for RestconfStream to advertize
all encodings it supports. This paves the way for transport components
to select the encoding based on subscriber preferences.

JIRA: NETCONF-1102
Change-Id: I9dbe6f7a0805668e2bbaf18d369c709e71e341f0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/AbstractNotificationStream.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/DataTreeChangeStream.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/streams/RestconfStream.java