Register only one events servlet 60/108760/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Oct 2023 22:02:34 +0000 (23:02 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Oct 2023 22:20:12 +0000 (23:20 +0100)
commit4467e5d613324e2214618ad883a23c89ac347346
tree22a2c511f27675e0ef056dbe4b8ca0986e9ef77d
parent7e8f8f2042cdad55d836119091d2ac8848dff5dd
Register only one events servlet

SubscribeToStreamUtil and the corresponding servlet are strongly
related -- the former produces references to the latter.

Express this dependency by allocating both object in the same place and
pass them to their respective users.

This has the nice end result that we do not enable WS servlet when
configured to use SSE and vice-versa -- making it clear the two belong
together and paving the way towards making the two proper components.

Change-Id: I42b0878fa9c9ac4e4b5800bfde8719134a409c7a
JIRA: NETCONF-1102
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/JaxRsNorthbound.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/RestconfApplication.java