Bug 6848 - upgrade XML media type 45/46445/6
authorJakub Toth <jatoth@cisco.com>
Tue, 4 Oct 2016 06:54:46 +0000 (08:54 +0200)
committerJakub Toth <jatoth@cisco.com>
Thu, 6 Oct 2016 07:28:39 +0000 (07:28 +0000)
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 9eabd4cbe499daac102077ddd32d11f617ab51c6..72f86c6d058c61a02de47f2d257d7df1db285918 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";