Package com.xebialabs.deployit.plumbing
Class ReleaseAttachmentViewJsonWriter
- java.lang.Object
-
- com.xebialabs.deployit.plumbing.ReleaseAttachmentViewJsonWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<java.util.Collection<AttachmentView>>
@Component @Provider @Produces({"application/json","text/html"}) public class ReleaseAttachmentViewJsonWriter extends java.lang.Object implements javax.ws.rs.ext.MessageBodyWriter<java.util.Collection<AttachmentView>>
-
-
Constructor Summary
Constructors Constructor Description ReleaseAttachmentViewJsonWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(java.util.Collection<AttachmentView> attachmentViews, 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<AttachmentView> attachmentViews, 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<AttachmentView>>
-
getSize
public long getSize(java.util.Collection<AttachmentView> attachmentViews, 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<AttachmentView>>
-
writeTo
public void writeTo(java.util.Collection<AttachmentView> attachmentViews, 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<AttachmentView>>- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
-