Class ReleaseArtifactViewJsonWriter

java.lang.Object
com.xebialabs.deployit.plumbing.ReleaseArtifactViewJsonWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<ArtifactView>

@Component @Provider @Produces({"application/json","text/html"}) public class ReleaseArtifactViewJsonWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<ArtifactView>
  • Constructor Details

    • ReleaseArtifactViewJsonWriter

      public ReleaseArtifactViewJsonWriter()
  • 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<ArtifactView>
    • writeTo

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