Class ServerVertxAsyncFileMessageBodyWriter

java.lang.Object
org.jboss.resteasy.reactive.server.vertx.serializers.ServerVertxAsyncFileMessageBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.file.AsyncFile>, ServerMessageBodyWriter<io.vertx.core.file.AsyncFile>

@Provider public class ServerVertxAsyncFileMessageBodyWriter extends Object implements ServerMessageBodyWriter<io.vertx.core.file.AsyncFile>
  • Constructor Details

    • ServerVertxAsyncFileMessageBodyWriter

      public ServerVertxAsyncFileMessageBodyWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface ServerMessageBodyWriter<io.vertx.core.file.AsyncFile>
    • writeResponse

      public void writeResponse(io.vertx.core.file.AsyncFile file, Type genericType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException
      Specified by:
      writeResponse in interface ServerMessageBodyWriter<io.vertx.core.file.AsyncFile>
      Throws:
      jakarta.ws.rs.WebApplicationException
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.file.AsyncFile>
    • writeTo

      public void writeTo(io.vertx.core.file.AsyncFile asyncFile, 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.file.AsyncFile>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException