Class XopWithMultipartRelatedWriter

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

@Provider @Produces("multipart/related") public class XopWithMultipartRelatedWriter extends AbstractMultipartRelatedWriter implements org.jboss.resteasy.spi.AsyncMessageBodyWriter<Object>
This provider is for writing xop packages packed as multipart/related. For more information see XopWithMultipartRelated.
Version:
$Revision: 1 $
Author:
Attila Kiraly
  • Constructor Details

    • XopWithMultipartRelatedWriter

      public XopWithMultipartRelatedWriter()
  • Method Details

    • getSize

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

      public void writeTo(Object t, 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 t, 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>