Specialize RestconfInvokeOperationsServiceImpl.invokeRpc() 32/107332/10
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 7 Aug 2023 22:45:09 +0000 (00:45 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Aug 2023 08:41:08 +0000 (10:41 +0200)
commit26cc79f9097dba1c435204a2fe7f7e851d934be6
treee084f4e40517d6eeef5608547cf460aaffe089c5
parent549aee61fbc82da04917982dc6f2cbb9291f574f
Specialize RestconfInvokeOperationsServiceImpl.invokeRpc()

Do not use NormalizedNodePayload, but instead inline handling, so that
we are in explicit control of how input is interpreted.

For XML case we also side-step the need to go through a org.w3c.Document,
speeding up deconding.

This eliminates out the first of the four uses of *NormalizedNodeBodyReader,
but it does not reduce its complexity due to codepaths being shared with
the action invocation (which goes through POST).

JIRA: NETCONF-1128
Change-Id: I2d36b38236dcddc1849133a13c1bc9766f54fc8b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/RestconfApplication.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/databind/StreamableOperationInput.java [new file with mode: 0644]
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfInvokeOperationsServiceImpl.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfInvokeOperationsServiceImplTest.java