Class MultipartWriter

java.lang.Object
org.jboss.resteasy.plugins.providers.multipart.AbstractMultipartWriter
org.jboss.resteasy.plugins.providers.multipart.MultipartWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<MultipartOutput>, org.jboss.resteasy.spi.AsyncMessageBodyWriter<MultipartOutput>

@Provider @Produces("multipart/*") public class MultipartWriter extends AbstractMultipartWriter implements org.jboss.resteasy.spi.AsyncMessageBodyWriter<MultipartOutput>
Version:
$Revision: 1 $
Author:
Bill Burke
  • Constructor Details

    • MultipartWriter

      public MultipartWriter()
  • Method Details

    • 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<MultipartOutput>
    • getSize

      public long getSize(MultipartOutput multipartOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<MultipartOutput>
    • writeTo

      public void writeTo(MultipartOutput multipartOutput, 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<MultipartOutput>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • asyncWriteTo

      public CompletionStage<Void> asyncWriteTo(MultipartOutput multipartOutput, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, org.jboss.resteasy.spi.AsyncOutputStream entityStream)
      Specified by:
      asyncWriteTo in interface org.jboss.resteasy.spi.AsyncMessageBodyWriter<MultipartOutput>