Package org.mycore.restapi.converter
Class MCRWrappedXMLWriter
java.lang.Object
org.mycore.restapi.converter.MCRWrappedXMLWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Object>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) final void
writeCollection
(jakarta.xml.bind.annotation.XmlElementWrapper wrapper, Collection<?> t, Charset c, Supplier<jakarta.xml.bind.Marshaller> m, OutputStream entityStream) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
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 interfacejakarta.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 interfacejakarta.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
-