io.quarkus.reactivemessaging.http.runtime.serializers.JsonArraySerializer Maven / Gradle / Ivy
package io.quarkus.reactivemessaging.http.runtime.serializers;
import org.jboss.logging.Logger;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonArray;
/**
* Serializer for JsonArray
*/
public class JsonArraySerializer implements Serializer {
private static final Logger log = Logger.getLogger(JsonArraySerializer.class);
@Override
public boolean handles(Object payload) {
return payload instanceof JsonArray;
}
@Override
public Buffer serialize(JsonArray payload) {
return payload.toBuffer();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy