Package org.mycore.restapi.converter
Class MCRMetaDefaultListJSONWriter
java.lang.Object
org.mycore.restapi.converter.MCRMetaDefaultListJSONWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<List<? extends MCRMetaDefault>>
@Provider
@Produces("application/json;charset=UTF-8")
public class MCRMetaDefaultListJSONWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<List<? extends MCRMetaDefault>>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) void
writeTo
(List<? extends MCRMetaDefault> mcrMetaDefaults, 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
-
Field Details
-
PARAM_XMLWRAPPER
- See Also:
-
-
Constructor Details
-
MCRMetaDefaultListJSONWriter
public MCRMetaDefaultListJSONWriter()
-
-
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<List<? extends MCRMetaDefault>>
-
writeTo
public void writeTo(List<? extends MCRMetaDefault> mcrMetaDefaults, 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<List<? extends MCRMetaDefault>>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-