public final class OperationOutputBody extends DatabindPathFormattableBody<OperationPath> {
private final ContainerNode output;
- public OperationOutputBody(final FormatParameters format, final OperationPath path, final ContainerNode output) {
- super(format, path);
+ public OperationOutputBody(final OperationPath path, final ContainerNode output) {
+ super(path);
this.output = requireNonNull(output);
if (output.isEmpty()) {
throw new IllegalArgumentException("output may not be empty");
}
@Override
- protected void formatToJSON(final OutputStream out, final FormatParameters format)
- throws IOException {
+ public void formatToJSON(final FormatParameters format, final OutputStream out) throws IOException {
final var stack = prepareStack();
// RpcDefinition/ActionDefinition is not supported as initial codec in JSONStreamWriter, so we need to emit
}
@Override
- protected void formatToXML(final OutputStream out, final FormatParameters format) throws IOException {
+ public void formatToXML(final FormatParameters format, final OutputStream out) throws IOException {
final var stack = prepareStack();
// RpcDefinition/ActionDefinition is not supported as initial codec in XMLStreamWriter, so we need to emit