Package org.mycore.restapi.v1.utils
Class MCRPropertiesToXMLTransformer
java.lang.Object
org.mycore.restapi.v1.utils.MCRPropertiesToXMLTransformer
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Properties>
@Produces("application/xml")
@Provider
public class MCRPropertiesToXMLTransformer
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<Properties>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Properties t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) void
writeTo
(Properties t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
MCRPropertiesToXMLTransformer
public MCRPropertiesToXMLTransformer()
-
-
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<Properties>
-
getSize
public long getSize(Properties t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Properties>
-
writeTo
public void writeTo(Properties 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<Properties>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-