Class VertxJsonObjectMessageBodyWriter

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonObject>, org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter<io.vertx.core.json.JsonObject>

    public class VertxJsonObjectMessageBodyWriter
    extends VertxJsonObjectBasicMessageBodyWriter
    implements org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter<io.vertx.core.json.JsonObject>
    • Constructor Detail

      • VertxJsonObjectMessageBodyWriter

        public VertxJsonObjectMessageBodyWriter()
    • Method Detail

      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo target,
                                   jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter<io.vertx.core.json.JsonObject>
      • writeResponse

        public void writeResponse​(io.vertx.core.json.JsonObject o,
                                  Type genericType,
                                  org.jboss.resteasy.reactive.server.spi.ServerRequestContext context)
                           throws jakarta.ws.rs.WebApplicationException
        Specified by:
        writeResponse in interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter<io.vertx.core.json.JsonObject>
        Throws:
        jakarta.ws.rs.WebApplicationException
      • writeTo

        public void writeTo​(io.vertx.core.json.JsonObject o,
                            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:
        writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.json.JsonObject>
        Overrides:
        writeTo in class VertxJsonObjectBasicMessageBodyWriter
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException