org.imixs.workflow.jaxrs
Class EntityCollectionWriter

java.lang.Object
  extended by org.imixs.workflow.jaxrs.EntityCollectionWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.EntityCollection>

@Provider
public class EntityCollectionWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.EntityCollection>

This MessageBodyWriter generates an HTML representation from a Entitycollection

Author:
rsoika

Constructor Summary
EntityCollectionWriter()
           
 
Method Summary
 long getSize(org.imixs.workflow.xml.EntityCollection arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
           
 boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(org.imixs.workflow.xml.EntityCollection entityCollection, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityCollectionWriter

public EntityCollectionWriter()
Method Detail

isWriteable

public boolean isWriteable(Class<?> type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.EntityCollection>

writeTo

public void writeTo(org.imixs.workflow.xml.EntityCollection entityCollection,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException,
                    javax.ws.rs.WebApplicationException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.EntityCollection>
Throws:
IOException
javax.ws.rs.WebApplicationException

getSize

public long getSize(org.imixs.workflow.xml.EntityCollection arg0,
                    Class<?> arg1,
                    Type arg2,
                    Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.EntityCollection>


Copyright © 2010-2012 Imixs Software Solutions GmbH. All Rights Reserved.