com.xebialabs.xltype.serialization.rest
Class ConfigurationItemIdWriter

java.lang.Object
  extended by com.xebialabs.xltype.serialization.rest.ConfigurationItemIdWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.ConfigurationItemId>

@Provider
public class ConfigurationItemIdWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.ConfigurationItemId>


Field Summary
protected  FormatFactory formats
           
 
Constructor Summary
ConfigurationItemIdWriter()
           
 
Method Summary
 long getSize(com.xebialabs.deployit.engine.api.dto.ConfigurationItemId t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(com.xebialabs.deployit.engine.api.dto.ConfigurationItemId ci, 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formats

protected FormatFactory formats
Constructor Detail

ConfigurationItemIdWriter

public ConfigurationItemIdWriter()
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:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.ConfigurationItemId>

getSize

public long getSize(com.xebialabs.deployit.engine.api.dto.ConfigurationItemId t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.ConfigurationItemId>

writeTo

public void writeTo(com.xebialabs.deployit.engine.api.dto.ConfigurationItemId ci,
                    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:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<com.xebialabs.deployit.engine.api.dto.ConfigurationItemId>
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException