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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) io.vertx.core.json.JsonArrayreadFrom(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)
-
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:
isReadablein interfacejakarta.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:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonArray>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-