Eliminate FormatParameters
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / jaxrs / XmlJaxRsFormattableBodyWriter.java
index 5f047a31d6fc00a5888f13445d1e0f93c2f6445a..0802cc429954fe215517d7ac60d20dd4d3b2d21a 100644 (file)
@@ -12,15 +12,16 @@ import java.io.OutputStream;
 import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.ext.Provider;
-import org.opendaylight.restconf.api.FormatParameters;
 import org.opendaylight.restconf.api.FormattableBody;
 import org.opendaylight.restconf.api.MediaTypes;
+import org.opendaylight.restconf.api.query.PrettyPrintParam;
 
 @Provider
 @Produces({ MediaTypes.APPLICATION_YANG_DATA_XML, MediaType.APPLICATION_XML, MediaType.TEXT_XML })
 public final class XmlJaxRsFormattableBodyWriter extends JaxRsFormattableBodyWriter {
     @Override
-    void writeTo(final FormattableBody body, final FormatParameters format, final OutputStream out) throws IOException {
-        body.formatToXML(format, out);
+    void writeTo(final FormattableBody body, final PrettyPrintParam prettyPrint, final OutputStream out)
+            throws IOException {
+        body.formatToXML(prettyPrint, out);
     }
 }