Class DeploymentInfoListJsonReaderWriter
- java.lang.Object
-
- com.xebialabs.deployit.core.rest.json.DeploymentInfoListJsonReaderWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo>>
@Component @Provider @Consumes("application/json") @Produces("application/json") public class DeploymentInfoListJsonReaderWriter extends java.lang.Object implements javax.ws.rs.ext.MessageBodyWriter<java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo>>
-
-
Constructor Summary
Constructors Constructor Description DeploymentInfoListJsonReaderWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo> infos, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)voidwriteTo(java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo> infos, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo>>
-
getSize
public long getSize(java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo> infos, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo>>
-
writeTo
public void writeTo(java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo> infos, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<java.util.Collection<com.xebialabs.deployit.engine.api.dto.DeploymentInfo>>- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
-