From bfe719479dc7d8e9bbd49275d63e40a0056edf1f Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 11 Jan 2023 02:01:13 +0100 Subject: [PATCH] Bind /notif to WebInitializer "/notif" is actually tied through WebInitializer, make sure that connection is expressed in code. Change-Id: I893fbece36ab8ec4d2fe30b3db9947f1521c9c71 Signed-off-by: Robert Varga --- .../opendaylight/restconf/nb/rfc8040/web/WebInitializer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/web/WebInitializer.java b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/web/WebInitializer.java index 5bab8a0eeb..17ee5b16d1 100644 --- a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/web/WebInitializer.java +++ b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/web/WebInitializer.java @@ -10,6 +10,7 @@ package org.opendaylight.restconf.nb.rfc8040.web; import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfStreamsConstants.DATA_SUBSCRIPTION; import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfStreamsConstants.NOTIFICATION_STREAM; import static org.opendaylight.restconf.nb.rfc8040.utils.RestconfConstants.BASE_URI_PATTERN; +import static org.opendaylight.restconf.nb.rfc8040.utils.RestconfConstants.NOTIF; import javax.annotation.PreDestroy; import javax.inject.Inject; @@ -54,7 +55,7 @@ public final class WebInitializer implements AutoCloseable { .asyncSupported(true) .build()) .addServlet(ServletDetails.builder() - .addUrlPattern("/notif/*") + .addUrlPattern("/" + NOTIF + "/*") .servlet(servletSupport.createHttpServletBuilder(webAppNotif).build()) .name("notificationServlet") .asyncSupported(true) -- 2.36.6