Package org.imixs.workflow.jaxrs
Class DocumentTableWriter
- java.lang.Object
-
- org.imixs.workflow.jaxrs.DocumentTableWriter
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.DocumentTable>
@Provider public class DocumentTableWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.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 Summary
Constructors Constructor Description DocumentTableWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(org.imixs.workflow.xml.DocumentTable arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)voidwriteTo(org.imixs.workflow.xml.DocumentTable documentTable, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)This method prints the collection data into a HTML table
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.DocumentTable>
-
writeTo
public void writeTo(org.imixs.workflow.xml.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.WebApplicationExceptionThis method prints the collection data into a HTML table- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.DocumentTable>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
getSize
public long getSize(org.imixs.workflow.xml.DocumentTable arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4)- Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.DocumentTable>
-
-