Convert bierman02 from web.xml to programmtic web API
[netconf.git] / restconf / restconf-nb-bierman02-auth / src / main / java / org / opendaylight / restconf / nb / bierman02 / web / auth / WebInitializer.java
diff --git a/restconf/restconf-nb-bierman02-auth/src/main/java/org/opendaylight/restconf/nb/bierman02/web/auth/WebInitializer.java b/restconf/restconf-nb-bierman02-auth/src/main/java/org/opendaylight/restconf/nb/bierman02/web/auth/WebInitializer.java
new file mode 100644 (file)
index 0000000..4f1af41
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2018 Inocybe Technologies and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.restconf.nb.bierman02.web.auth;
+
+import org.opendaylight.netconf.sal.restconf.web.Bierman02WebRegistrar;
+
+/**
+ * Initializes the bierman-02 endpoint with authentication.
+ *
+ * @author Thomas Pantelis
+ */
+public class WebInitializer {
+    public WebInitializer(Bierman02WebRegistrar registrar) {
+        registrar.registerWithAuthentication();
+    }
+}