Class ServerMutinyAsyncFileMessageBodyWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<io.vertx.mutiny.core.file.AsyncFile>, ServerMessageBodyWriter<io.vertx.mutiny.core.file.AsyncFile>

    @Provider
    public class ServerMutinyAsyncFileMessageBodyWriter
    extends Object
    implements ServerMessageBodyWriter<io.vertx.mutiny.core.file.AsyncFile>
    • Constructor Detail

      • ServerMutinyAsyncFileMessageBodyWriter

        public ServerMutinyAsyncFileMessageBodyWriter()
    • Method Detail

      • isWriteable

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

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

        public void writeTo​(io.vertx.mutiny.core.file.AsyncFile asyncFile,
                            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
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<io.vertx.mutiny.core.file.AsyncFile>
        Throws:
        IOException
        javax.ws.rs.WebApplicationException