io.quarkus.resteasy.reactive.jackson.runtime.serialisers.vertx.VertxJsonObjectMessageBodyReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-rest-jackson Show documentation
Show all versions of quarkus-rest-jackson Show documentation
Jackson serialization support for Quarkus REST. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it
package io.quarkus.resteasy.reactive.jackson.runtime.serialisers.vertx;
import java.io.IOException;
import java.lang.reflect.Type;
import jakarta.ws.rs.WebApplicationException;
import jakarta.ws.rs.core.MediaType;
import org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo;
import org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader;
import org.jboss.resteasy.reactive.server.spi.ServerRequestContext;
import io.vertx.core.json.JsonObject;
public class VertxJsonObjectMessageBodyReader extends VertxJsonObjectBasicMessageBodyReader
implements ServerMessageBodyReader {
@Override
public boolean isReadable(Class> type, Type genericType, ResteasyReactiveResourceInfo lazyMethod, MediaType mediaType) {
return isReadable(type);
}
@Override
public JsonObject readFrom(Class type, Type genericType, MediaType mediaType, ServerRequestContext context)
throws WebApplicationException, IOException {
return readFrom(context.getInputStream());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy