*/
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;
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;
QName.create(RestconfModule.IETF_RESTCONF_QNAME, RestconfModule.LIB_VER_LEAF_SCHEMA_NODE));
final InstanceIdentifierContext<? extends SchemaNode> 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);
}