Refactor pretty printing
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / JaxRsNorthbound.java
index 13b62fb0855dabe2aa544e68389bf45780642d9c..36feabf53991560e3c9cdd84bb59d32986326649 100644 (file)
@@ -21,8 +21,8 @@ import org.opendaylight.aaa.web.WebServer;
 import org.opendaylight.aaa.web.servlet.ServletSupport;
 import org.opendaylight.restconf.nb.jaxrs.JaxRsRestconf;
 import org.opendaylight.restconf.nb.jaxrs.JaxRsWebHostMetadata;
-import org.opendaylight.restconf.nb.jaxrs.JsonReplyBodyWriter;
-import org.opendaylight.restconf.nb.jaxrs.XmlReplyBodyWriter;
+import org.opendaylight.restconf.nb.jaxrs.JsonFormattableBody;
+import org.opendaylight.restconf.nb.jaxrs.XmlFormattableBody;
 import org.opendaylight.restconf.nb.rfc8040.jersey.providers.JsonNormalizedNodeBodyWriter;
 import org.opendaylight.restconf.nb.rfc8040.jersey.providers.JsonPatchStatusBodyWriter;
 import org.opendaylight.restconf.nb.rfc8040.jersey.providers.XmlNormalizedNodeBodyWriter;
@@ -70,7 +70,7 @@ public final class JaxRsNorthbound implements AutoCloseable {
                         @Override
                         public Set<Object> getSingletons() {
                             return Set.of(
-                                new JsonReplyBodyWriter(), new XmlReplyBodyWriter(),
+                                new JsonFormattableBody(), new XmlFormattableBody(),
                                 new RestconfDocumentedExceptionMapper(databindProvider),
                                 new JaxRsRestconf(server));
                         }