Package org.imixs.workflow.jaxrs
Class DocumentCollectionWriter
java.lang.Object
org.imixs.workflow.jaxrs.DocumentCollectionWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<XMLDataCollection>
@Provider
@Produces("text/html")
public class DocumentCollectionWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<XMLDataCollection>
This MessageBodyWriter generates an HTML representation from a
DocumetCollection
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(XMLDataCollection 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(XMLDataCollection entityCollection, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
DocumentCollectionWriter
public DocumentCollectionWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<XMLDataCollection>
-
writeTo
public void writeTo(XMLDataCollection entityCollection, 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- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<XMLDataCollection>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
getSize
public long getSize(XMLDataCollection arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<XMLDataCollection>
-