2 * Copyright (c) 2020 ZTE Corp. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.nb.rfc8040;
11 import javax.ws.rs.core.Application;
12 import org.opendaylight.restconf.nb.rfc8040.jersey.providers.errors.RestconfDocumentedExceptionMapper;
13 import org.opendaylight.restconf.nb.rfc8040.rests.services.api.RootResourceDiscoveryService;
14 import org.opendaylight.restconf.nb.rfc8040.rests.services.impl.RootResourceDiscoveryServiceImpl;
16 public class RootFoundApplication extends Application {
17 private final RootResourceDiscoveryService rrds;
19 public RootFoundApplication(final String restconfRoot) {
20 rrds = new RootResourceDiscoveryServiceImpl(restconfRoot);
24 public Set<Class<?>> getClasses() {
25 return Set.of(RestconfDocumentedExceptionMapper.class);
29 public Set<Object> getSingletons() {