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