Eliminate FormatParameters
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / server / api / DatabindFormattableBody.java
index d1aaf2d0902f70fa547bc3346ada517e9002be42..8d5308a0f983eb3374cc10b63260e57f26398819 100644 (file)
@@ -12,8 +12,8 @@ import static java.util.Objects.requireNonNull;
 import java.io.IOException;
 import java.io.OutputStream;
 import org.eclipse.jdt.annotation.NonNullByDefault;
-import org.opendaylight.restconf.api.FormatParameters;
 import org.opendaylight.restconf.api.FormattableBody;
+import org.opendaylight.restconf.api.query.PrettyPrintParam;
 
 /**
  * A {@link FormattableBody} which has an attached {@link DatabindContext}.
@@ -27,18 +27,18 @@ public abstract class DatabindFormattableBody extends FormattableBody {
     }
 
     @Override
-    public final void formatToJSON(final FormatParameters format, final OutputStream out) throws IOException {
-        formatToJSON(databind, format, out);
+    public final void formatToJSON(final PrettyPrintParam prettyPrint, final OutputStream out) throws IOException {
+        formatToJSON(databind, prettyPrint, out);
     }
 
-    protected abstract void formatToJSON(DatabindContext databind, FormatParameters format, OutputStream out)
+    protected abstract void formatToJSON(DatabindContext databind, PrettyPrintParam prettyPrint, OutputStream out)
         throws IOException;
 
     @Override
-    public final void formatToXML(final FormatParameters format, final OutputStream out) throws IOException {
-        formatToXML(databind, format, out);
+    public final void formatToXML(final PrettyPrintParam prettyPrint, final OutputStream out) throws IOException {
+        formatToXML(databind, prettyPrint, out);
     }
 
-    protected abstract void formatToXML(DatabindContext databind, FormatParameters format, OutputStream out)
+    protected abstract void formatToXML(DatabindContext databind, PrettyPrintParam prettyPrint, OutputStream out)
         throws IOException;
 }