Split out EndpointRoot 33/113833/7
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Oct 2024 16:01:21 +0000 (18:01 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Tue, 8 Oct 2024 07:35:49 +0000 (07:35 +0000)
commit4e535f23108fbc031cd34854b86e73f9a976403c
tree5d1cd6060736076d330a4890b9df56864e29d0fe
parent242e2e26c2c953e1dc1d5b5da732fae7f08c7ecb
Split out EndpointRoot

RestconfSession includes more functionality than it should, mostly
because there was no other place to stick it while we had
RestconfRequestDispatcher.

This patch introduces EndpointRoot, which acts as the semantic root
resource of a particular Endpoint, taking care of dispatching between
registered resources.

JIRA: NETCONF-1379
Change-Id: Id59841b92f5a568024463a7355d6bfdf2969a7c9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/APIResource.java
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/AbstractResource.java
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/EndpointRoot.java [new file with mode: 0644]
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/RestconfSession.java
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/RestconfTransportChannelListener.java
protocol/restconf-server/src/main/java/org/opendaylight/restconf/server/WellKnownResources.java
protocol/restconf-server/src/test/java/org/opendaylight/restconf/server/WellKnownResourcesTest.java