Package com.xebialabs.deployit.plumbing
Class ReleaseArtifactViewsJsonWriter
java.lang.Object
com.xebialabs.deployit.plumbing.ReleaseArtifactViewsJsonWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Collection<ArtifactView>>
@Component
@Provider
@Produces({"application/json","text/html"})
public class ReleaseArtifactViewsJsonWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<Collection<ArtifactView>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(Collection<ArtifactView> artifactViews, 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(Collection<ArtifactView> artifactViews, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
ReleaseArtifactViewsJsonWriter
public ReleaseArtifactViewsJsonWriter()
-
-
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<Collection<ArtifactView>>
-
getSize
public long getSize(Collection<ArtifactView> artifactViews, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<ArtifactView>>
-
writeTo
public void writeTo(Collection<ArtifactView> artifactViews, 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:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Collection<ArtifactView>>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-