Package org.imixs.workflow.jaxrs
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 Summary
Constructors Constructor Description DocumentTableWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(DocumentTable arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4)
boolean
isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
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)
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:
isWriteable
in interfacejakarta.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 interfacejakarta.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 interfacejakarta.ws.rs.ext.MessageBodyWriter<DocumentTable>
-
-