Class JsonArrayWriter
java.lang.Object
io.quarkus.resteasy.runtime.vertx.JsonArrayWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonArray>,org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonArray>
@Provider
@Produces("application/json")
public class JsonArrayWriter
extends Object
implements org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonArray>
A body writer that allows to return a Vert.x
JsonArray as JAX-RS response content.- Author:
- Thomas Segismont
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasyncWriteTo(io.vertx.core.json.JsonArray jsonArray, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, org.jboss.resteasy.spi.AsyncOutputStream entityStream) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(io.vertx.core.json.JsonArray jsonArray, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
JsonArrayWriter
public JsonArrayWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonArray>
-
writeTo
public void writeTo(io.vertx.core.json.JsonArray jsonArray, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonArray>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
asyncWriteTo
public CompletionStage<Void> asyncWriteTo(io.vertx.core.json.JsonArray jsonArray, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, org.jboss.resteasy.spi.AsyncOutputStream entityStream) - Specified by:
asyncWriteToin interfaceorg.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonArray>
-