Class MCRWrappedXMLWriter

java.lang.Object
org.mycore.restapi.converter.MCRWrappedXMLWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Object>

@Provider @Produces({"application/xml","text/xml"}) public class MCRWrappedXMLWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<Object>
  • Constructor Details

    • MCRWrappedXMLWriter

      public MCRWrappedXMLWriter()
  • 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>
    • 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
    • writeCollection

      public final void writeCollection(jakarta.xml.bind.annotation.XmlElementWrapper wrapper, Collection<?> t, Charset c, Supplier<jakarta.xml.bind.Marshaller> m, OutputStream entityStream) throws jakarta.xml.bind.JAXBException, IOException
      Throws:
      jakarta.xml.bind.JAXBException
      IOException