Class GenericMultipartWriter

java.lang.Object
dev.getelements.elements.rt.jersey.GenericMultipartWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Collection<?>>

@Singleton @Produces("multipart/*") public class GenericMultipartWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<Collection<?>>
  • Constructor Details

    • GenericMultipartWriter

      public GenericMultipartWriter(@Context jakarta.ws.rs.ext.Providers providers)
  • 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<Collection<?>>
    • writeTo

      public void writeTo(Collection<?> collection, 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<Collection<?>>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException