Class JsonObjectReader
- java.lang.Object
-
- io.quarkus.resteasy.runtime.vertx.JsonObjectReader
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonObject>
@Provider @Produces("application/json") public class JsonObjectReader extends Object implements javax.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonObject>
A body reader that allows to get a Vert.xJsonObject
as JAX-RS request content.
-
-
Constructor Summary
Constructors Constructor Description JsonObjectReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
io.vertx.core.json.JsonObject
readFrom(Class<io.vertx.core.json.JsonObject> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejavax.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, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<io.vertx.core.json.JsonObject>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
-