Class MapStringCollectionJsonWriter
java.lang.Object
com.xebialabs.deployit.core.rest.json.MapStringCollectionJsonWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Map<String,Collection<String>>>
@Component
@Provider
@Consumes("application/json")
@Produces("application/json")
public class MapStringCollectionJsonWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<Map<String,Collection<String>>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(Map<String, Collection<String>> map, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(Map<String, Collection<String>> map, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
MapStringCollectionJsonWriter
public MapStringCollectionJsonWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Map<String,Collection<String>>>
-
getSize
public long getSize(Map<String, Collection<String>> map, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<Map<String,Collection<String>>>
-
writeTo
public void writeTo(Map<String, Collection<String>> map, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, throws IOException, jakarta.ws.rs.WebApplicationExceptionObject> httpHeaders, OutputStream entityStream) - Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Map<String,Collection<String>>> - Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-