Class MultipartFormAnnotationWriter

All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Object>, org.jboss.resteasy.spi.AsyncMessageBodyWriter<Object>

@Provider @Produces("multipart/form-data") public class MultipartFormAnnotationWriter extends AbstractMultipartFormDataWriter implements org.jboss.resteasy.spi.AsyncMessageBodyWriter<Object>
Version:
$Revision: 1 $
Author:
Bill Burke
  • Constructor Details

    • MultipartFormAnnotationWriter

      public MultipartFormAnnotationWriter()
  • 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<Object>
    • getSize

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

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

      public CompletionStage<Void> asyncWriteTo(Object obj, 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<Object>
    • getFilename

      protected String getFilename(AccessibleObject method)
    • getFields

      protected void getFields(Class<?> type, MultipartFormDataOutput output, Object obj) throws IOException
      Throws:
      IOException