Bug 6848 - upgrade XML media type 25/46825/1
authorJakub Toth <jatoth@cisco.com>
Tue, 4 Oct 2016 06:54:46 +0000 (08:54 +0200)
committerJakub Toth <jatoth@cisco.com>
Wed, 12 Oct 2016 10:41:57 +0000 (12:41 +0200)
Change-Id: I16b959a4f325468836477c60d094a1e7473de9e1
Signed-off-by: Jakub Toth <jatoth@cisco.com>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/NormalizedNodeXmlBodyWriter.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/XmlNormalizedNodeBodyReader.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/utils/RestconfConstants.java

index ce9cf8f96606e42d183ba6fc727b1c45097ab9c4..0a0435c09000630b8ad05aef4b3154bb404b080a 100644 (file)
@@ -45,7 +45,7 @@ import javanet.staxutils.IndentingXMLStreamWriter;
 
 @Provider
 @Produces({ Draft02.MediaTypes.API + RestconfService.XML, Draft02.MediaTypes.DATA + RestconfService.XML,
-        Draft02.MediaTypes.OPERATION + RestconfService.XML, Draft17.MediaTypes.DATA + RestconfConstants.XML_ORIG,
+        Draft02.MediaTypes.OPERATION + RestconfService.XML, Draft17.MediaTypes.DATA + RestconfConstants.XML,
         MediaType.APPLICATION_XML, MediaType.TEXT_XML })
 public class NormalizedNodeXmlBodyWriter implements MessageBodyWriter<NormalizedNodeContext> {
 
index a1c188433165cbf1647fcd2b135ec1ca5be9dc8f..4c9275668b985c2e4e61a37078d83d077905bd83 100644 (file)
@@ -58,7 +58,7 @@ import org.w3c.dom.Element;
 
 @Provider
 @Consumes({ Draft02.MediaTypes.DATA + RestconfService.XML, Draft02.MediaTypes.OPERATION + RestconfService.XML,
-        Draft17.MediaTypes.DATA + RestconfConstants.XML_ORIG, MediaType.APPLICATION_XML, MediaType.TEXT_XML })
+        Draft17.MediaTypes.DATA + RestconfConstants.XML, MediaType.APPLICATION_XML, MediaType.TEXT_XML })
 public class XmlNormalizedNodeBodyReader extends AbstractIdentifierAwareJaxRsProvider implements MessageBodyReader<NormalizedNodeContext> {
 
     private final static Logger LOG = LoggerFactory.getLogger(XmlNormalizedNodeBodyReader.class);
index f2886179040e307ff8507c7685ab52522d6f73c8..67b01edf191c889886d8d259c32dc476f69f26ca 100644 (file)
@@ -17,7 +17,6 @@ import java.text.SimpleDateFormat;
 public final class RestconfConstants {
 
     public static final String XML = "+xml";
-    public static final String XML_ORIG = "-xml";
     public static final String JSON = "+json";
     public static final String MOUNT = "yang-ext:mount";
     public static final String IDENTIFIER = "identifier";