X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-rfc8040%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fnb%2Frfc8040%2Fservices%2Fsimple%2Fimpl%2FRestconfImpl.java;h=e3db40ba725c62d726dfe600d688cb361c1cf783;hb=6c603388033f870807dfd8e284cb938d24d68f27;hp=bd0942072736c55a82f2833205403c92d4ce46b1;hpb=45cfee1861924b4a8086d38079ce8cbd320386d6;p=netconf.git diff --git a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfImpl.java b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfImpl.java index bd09420727..e3db40ba72 100644 --- a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfImpl.java +++ b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/services/simple/impl/RestconfImpl.java @@ -7,6 +7,7 @@ */ package org.opendaylight.restconf.nb.rfc8040.services.simple.impl; +import javax.ws.rs.Path; import org.opendaylight.restconf.common.context.InstanceIdentifierContext; import org.opendaylight.restconf.common.context.NormalizedNodeContext; import org.opendaylight.restconf.nb.rfc8040.Rfc8040.IetfYangLibrary; @@ -23,9 +24,10 @@ import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode; import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.opendaylight.yangtools.yang.model.api.SchemaNode; +@Path("/") public class RestconfImpl implements RestconfService { - private SchemaContextHandler schemaContextHandler; + private volatile SchemaContextHandler schemaContextHandler; public RestconfImpl(final SchemaContextHandler schemaContextHandler) { this.schemaContextHandler = schemaContextHandler; @@ -47,8 +49,8 @@ public class RestconfImpl implements RestconfService { QName.create(RestconfModule.IETF_RESTCONF_QNAME, RestconfModule.LIB_VER_LEAF_SCHEMA_NODE)); final InstanceIdentifierContext iid = new InstanceIdentifierContext<>(yangIId, schemaNode, null, context); - final NormalizedNode data = - Builders.leafBuilder((LeafSchemaNode) schemaNode).withValue(IetfYangLibrary.REVISION).build(); + final NormalizedNode data = Builders.leafBuilder((LeafSchemaNode) schemaNode) + .withValue(IetfYangLibrary.REVISION.toString()).build(); return new NormalizedNodeContext(iid, data); }