Class JsonObjectReader

java.lang.Object
io.quarkus.resteasy.runtime.vertx.JsonObjectReader
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonObject>

@Provider @Produces("application/json") public class JsonObjectReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonObject>
A body reader that allows to get a Vert.x JsonObject as JAX-RS request content.
  • Constructor Details

    • JsonObjectReader

      public JsonObjectReader()
  • Method Details

    • isReadable

      public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonObject>
    • readFrom

      public io.vertx.core.json.JsonObject readFrom(Class<io.vertx.core.json.JsonObject> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonObject>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException