Class JsonArrayReader

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

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

    • JsonArrayReader

      public JsonArrayReader()
  • 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.JsonArray>
    • readFrom

      public io.vertx.core.json.JsonArray readFrom(Class<io.vertx.core.json.JsonArray> 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.JsonArray>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException