X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frest%2Fimpl%2FRestconfApplication.java;h=a5fd7bdaab2646f35e7463f9698f15ca217de11f;hb=b3d2a00776a1a5e3a139d73ced859aa557c931af;hp=6dc74840810a195d7e8a1bd8771a947530ce307a;hpb=b5daa3678322a764f9b0e2483f82781f4d39d263;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java index 6dc7484081..a5fd7bdaab 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/RestconfApplication.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. 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.controller.sal.rest.impl; import java.util.HashSet; @@ -9,8 +16,15 @@ import org.opendaylight.controller.sal.restconf.impl.BrokerFacade; import org.opendaylight.controller.sal.restconf.impl.ControllerContext; import org.opendaylight.controller.sal.restconf.impl.RestconfImpl; +import com.google.common.collect.ImmutableSet; + public class RestconfApplication extends Application { + @Override + public Set> getClasses() { + return ImmutableSet.>of( RestconfDocumentedExceptionMapper.class ); + } + @Override public Set getSingletons() { Set singletons = new HashSet<>(); @@ -24,7 +38,10 @@ public class RestconfApplication extends Application { singletons.add(restconfImpl); singletons.add(XmlToCompositeNodeProvider.INSTANCE); singletons.add(StructuredDataToXmlProvider.INSTANCE); + singletons.add(JsonToCompositeNodeProvider.INSTANCE); + singletons.add(StructuredDataToJsonProvider.INSTANCE); return singletons; } + }