Class TaskWithBlocksJsonWriter

java.lang.Object
com.xebialabs.deployit.core.rest.json.TaskWithBlocksJsonWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<List<com.xebialabs.deployit.engine.api.execution.TaskWithBlock>>

@Component @Provider @Consumes("application/json") @Produces("application/json") public class TaskWithBlocksJsonWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<List<com.xebialabs.deployit.engine.api.execution.TaskWithBlock>>
  • Constructor Details

    • TaskWithBlocksJsonWriter

      public TaskWithBlocksJsonWriter()
  • 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<List<com.xebialabs.deployit.engine.api.execution.TaskWithBlock>>
    • getSize

      public long getSize(List<com.xebialabs.deployit.engine.api.execution.TaskWithBlock> taskWithBlocks, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<List<com.xebialabs.deployit.engine.api.execution.TaskWithBlock>>
    • writeTo

      public void writeTo(List<com.xebialabs.deployit.engine.api.execution.TaskWithBlock> taskWithBlocks, 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<List<com.xebialabs.deployit.engine.api.execution.TaskWithBlock>>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException