Class JsonObjectWriter
- java.lang.Object
-
- io.quarkus.resteasy.runtime.vertx.JsonObjectWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonObject>
,org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonObject>
@Provider @Produces("application/json") public class JsonObjectWriter extends Object implements org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonObject>
A body writer that allows to return a Vert.xJsonObject
as JAX-RS response content.- Author:
- Thomas Segismont
-
-
Constructor Summary
Constructors Constructor Description JsonObjectWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>
asyncWriteTo(io.vertx.core.json.JsonObject jsonObject, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, org.jboss.resteasy.spi.AsyncOutputStream entityStream)
boolean
isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
void
writeTo(io.vertx.core.json.JsonObject jsonObject, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonObject>
-
writeTo
public void writeTo(io.vertx.core.json.JsonObject jsonObject, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonObject>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
asyncWriteTo
public CompletionStage<Void> asyncWriteTo(io.vertx.core.json.JsonObject jsonObject, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, org.jboss.resteasy.spi.AsyncOutputStream entityStream)
- Specified by:
asyncWriteTo
in interfaceorg.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonObject>
-
-