Class SelectedDeploymentJsonReaderWriter

java.lang.Object
com.xebialabs.deployit.core.rest.json.SelectedDeploymentJsonReaderWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>, jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>

@Component @Provider @Consumes("application/json") @Produces("application/json") public class SelectedDeploymentJsonReaderWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>, jakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
  • Constructor Details

    • SelectedDeploymentJsonReaderWriter

      @Autowired public SelectedDeploymentJsonReaderWriter(ReaderPostProcessor postProcessor)
  • 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<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
    • isReadable

      public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
    • getSize

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

      public void writeTo(com.xebialabs.deployit.engine.api.dto.SelectedDeployment deployment, 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<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • readFrom

      public com.xebialabs.deployit.engine.api.dto.SelectedDeployment readFrom(Class<com.xebialabs.deployit.engine.api.dto.SelectedDeployment> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<com.xebialabs.deployit.engine.api.dto.SelectedDeployment>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • toString

      public String toString(InputStream in) throws IOException
      Throws:
      IOException