From: Robert Varga Date: Wed, 11 Jan 2023 01:01:13 +0000 (+0100) Subject: Bind /notif to WebInitializer X-Git-Tag: v5.0.0~8 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=bfe719479dc7d8e9bbd49275d63e40a0056edf1f;p=netconf.git 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 --- 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)