Eliminate FormatParameters
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / jaxrs / JsonJaxRsFormattableBodyWriter.java
index f012e0d0134a29a0480429469e11ba58fbe4b49d..9385a0c92dd3f877cebac8ea69a4ae653b089b6e 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_JSON, MediaType.APPLICATION_JSON })
 public final class JsonJaxRsFormattableBodyWriter extends JaxRsFormattableBodyWriter {
     @Override
-    void writeTo(final FormattableBody body, final FormatParameters format, final OutputStream out) throws IOException {
-        body.formatToJSON(format, out);
+    void writeTo(final FormattableBody body, final PrettyPrintParam prettyPrint, final OutputStream out)
+            throws IOException {
+        body.formatToJSON(prettyPrint, out);
     }
 }