java.lang.Object
ee.jakarta.tck.ws.rs.spec.resource.responsemediatype.MediaWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<List<?>>

@Provider @Produces("application/svg+xml") public class MediaWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<List<?>>
  • Constructor Details

    • MediaWriter

      public MediaWriter()
  • 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<List<?>>
    • getSize

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

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