Class DocumentTableWriter

java.lang.Object
org.imixs.workflow.jaxrs.DocumentTableWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<DocumentTable>

@Provider public class DocumentTableWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<DocumentTable>
This MessageBodyWriter generates an HTML representation from a DocumentTable. The output is a data table in HTML format where each item is represented in a row which has the same columns.
Author:
rsoika
  • Constructor Details

    • DocumentTableWriter

      public DocumentTableWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<DocumentTable>
    • writeTo

      public void writeTo(DocumentTable documentTable, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      This method prints the collection data into a HTML table
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<DocumentTable>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • getSize

      public long getSize(DocumentTable arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<DocumentTable>