Introduce FieldsParameter 51/98051/14
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 22 Oct 2021 18:26:08 +0000 (20:26 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 23 Oct 2021 18:20:49 +0000 (20:20 +0200)
commitd7dd4861ce51eebae8423eda4197bd66a34254c3
treeb24c09080ec887cd73dcb6e7db49b63c46e74992
parent63e357348ac7f7d3127b1554de0eb18cae4b1e64
Introduce FieldsParameter

The "fields" parameter is a rather simple structure. Parsing it requires
a bit of recursion, but there is certainly no arcanum involved. Create a
class to semantically represent this field and introduce a parser which
can create these by following RFC8040 grammar to the letter.

JIRA: NETCONF-820
Change-Id: I279c04c03a482e9155ff1594a69ffd2da7678df2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/FieldsParameter.java [new file with mode: 0644]
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/FieldsParameterParser.java [new file with mode: 0644]
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/FieldsParameterTest.java [new file with mode: 0644]