Introduce YangPatchStatusBody 99/111299/6
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 6 Apr 2024 00:45:21 +0000 (02:45 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 6 Apr 2024 00:58:48 +0000 (02:58 +0200)
commitd1104393487ee2edec75789a0ccd911d3e85c609
tree17d47f6dd7a24f54fc798366e3a50161a4a13b78
parent2c64ae4099091d0b0e5d4460498d84a5ed386cbb
Introduce YangPatchStatusBody

Add a dedicated FormattableBody for YANG Patch status, eliminating
the need for dedicated MessageBodyWriters. This has the nice result of
unifying tests as well.

JIRA: NETCONF-773
Change-Id: I06cb44fa4ea88b1e6505e5d3911ba3167503afa2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/jaxrs/JaxRsRestconf.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/JaxRsNorthbound.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/AbstractPatchStatusBodyWriter.java [deleted file]
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/JsonPatchStatusBodyWriter.java [deleted file]
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/XmlPatchStatusBodyWriter.java [deleted file]
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/spi/YangPatchStatusBody.java [new file with mode: 0644]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfDataPatchTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/JsonPatchStatusBodyWriterTest.java [deleted file]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/spi/YangPatchStatusBodyTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/XmlPatchStatusBodyWriterTest.java with 63% similarity]