@Provider @Produces(value="application/json") public class JsonObjectWriter extends Object implements org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonObject>
JsonObject as JAX-RS response content.| Constructor and Description |
|---|
JsonObjectWriter() |
| Modifier and Type | Method and 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) |
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.JsonObject>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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonObject>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic 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)
asyncWriteTo in interface org.jboss.resteasy.spi.AsyncMessageBodyWriter<io.vertx.core.json.JsonObject>Copyright © 2021 JBoss by Red Hat. All rights reserved.