org.imixs.workflow.jaxrs
Class EntityTableWriter

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

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

This MessageBodyWriter generates an HTML representation from a EntityTable. The output is a table format where each entity has the same columns.

Author:
rsoika

Constructor Summary
EntityTableWriter()
           
 
Method Summary
 long getSize(org.imixs.workflow.xml.EntityTable 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.EntityTable 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

EntityTableWriter

public EntityTableWriter()
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.EntityTable>

writeTo

public void writeTo(org.imixs.workflow.xml.EntityTable 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.EntityTable>
Throws:
IOException
javax.ws.rs.WebApplicationException

getSize

public long getSize(org.imixs.workflow.xml.EntityTable 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.EntityTable>


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