Class MapStringStringJsonWriter

java.lang.Object
com.xebialabs.deployit.core.rest.json.MapStringStringJsonWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Map<String,String>>

@Component @Provider @Consumes("application/json") @Produces("application/json") public class MapStringStringJsonWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<Map<String,String>>
  • Constructor Details

    • MapStringStringJsonWriter

      public MapStringStringJsonWriter()
  • 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<Map<String,String>>
    • getSize

      public long getSize(Map<String,String> map, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<Map<String,String>>
    • writeTo

      public void writeTo(Map<String,String> map, 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<Map<String,String>>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException