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