Eliminate FormatParameters
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / jaxrs / FormattableBodyCallback.java
index 8d5aebb00be3ca6bc1ce35fa7fe5cc2abc4863ae..da864fb93a8773cfc047ef1555188edd20e1fd76 100644 (file)
@@ -12,23 +12,23 @@ import static java.util.Objects.requireNonNull;
 import javax.ws.rs.container.AsyncResponse;
 import javax.ws.rs.core.Response;
 import org.eclipse.jdt.annotation.NonNull;
-import org.opendaylight.restconf.api.FormatParameters;
 import org.opendaylight.restconf.api.FormattableBody;
+import org.opendaylight.restconf.api.query.PrettyPrintParam;
 import org.opendaylight.restconf.common.errors.RestconfDocumentedException;
 
 /**
  * A {@link JaxRsRestconfCallback} producing a {@link FormattableBody}.
  */
 final class FormattableBodyCallback extends JaxRsRestconfCallback<FormattableBody> {
-    private final @NonNull FormatParameters format;
+    private final @NonNull PrettyPrintParam prettyPrint;
 
-    FormattableBodyCallback(final AsyncResponse ar, final FormatParameters format) {
+    FormattableBodyCallback(final AsyncResponse ar, final PrettyPrintParam prettyPrint) {
         super(ar);
-        this.format = requireNonNull(format);
+        this.prettyPrint = requireNonNull(prettyPrint);
     }
 
     @Override
     Response transform(final FormattableBody result) throws RestconfDocumentedException {
-        return Response.ok().entity(new JaxRsFormattableBody(result, format)).build();
+        return Response.ok().entity(new JaxRsFormattableBody(result, prettyPrint)).build();
     }
 }