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 java.lang.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, java.lang.Class<?> arg1, java.lang.reflect.Type arg2, java.lang.annotation.Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 void writeTo(org.imixs.workflow.xml.EntityTable entityCollection, 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
 

Constructor Detail

EntityTableWriter

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

writeTo

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

getSize

public long getSize(org.imixs.workflow.xml.EntityTable arg0,
                    java.lang.Class<?> arg1,
                    java.lang.reflect.Type arg2,
                    java.lang.annotation.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.