@Provider @Produces(value="application/json") public class JsonArrayWriter extends Object implements org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonArray>
JsonArray as JAX-RS response content.| Constructor and Description |
|---|
JsonArrayWriter() |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
asyncWriteTo(io.vertx.core.json.JsonArray jsonArray,
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.JsonArray jsonArray,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonArray>public void writeTo(io.vertx.core.json.JsonArray jsonArray,
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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonArray>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic CompletionStage<Void> asyncWriteTo(io.vertx.core.json.JsonArray jsonArray, 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)
asyncWriteTo in interface org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonArray>Copyright © 2021 JBoss by Red Hat. All rights reserved.