Bump versions to 4.0.0-SNAPSHOT
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / rest / impl / PatchJsonBodyWriter.java
index 68bf0182c13052773adce5f564b0020fcb43994e..63586af75b220ae8210864cae52102df902d4c86 100644 (file)
@@ -24,9 +24,9 @@ import javax.ws.rs.ext.MessageBodyWriter;
 import javax.ws.rs.ext.Provider;
 import org.opendaylight.netconf.sal.rest.api.Draft02;
 import org.opendaylight.netconf.sal.rest.api.RestconfService;
-import org.opendaylight.netconf.sal.restconf.impl.PatchStatusContext;
-import org.opendaylight.netconf.sal.restconf.impl.PatchStatusEntity;
 import org.opendaylight.restconf.common.errors.RestconfError;
+import org.opendaylight.restconf.common.patch.PatchStatusContext;
+import org.opendaylight.restconf.common.patch.PatchStatusEntity;
 import org.opendaylight.yangtools.yang.data.codec.gson.JsonWriterFactory;
 
 
@@ -99,8 +99,8 @@ public class PatchJsonBodyWriter implements MessageBodyWriter<PatchStatusContext
 
         for (final RestconfError restconfError : errors) {
             jsonWriter.beginObject();
-            jsonWriter.name("error-type").value(restconfError.getErrorType().getErrorTypeTag());
-            jsonWriter.name("error-tag").value(restconfError.getErrorTag().getTagValue());
+            jsonWriter.name("error-type").value(restconfError.getErrorType().elementBody());
+            jsonWriter.name("error-tag").value(restconfError.getErrorTag().elementBody());
 
             // optional node
             if (restconfError.getErrorPath() != null) {