Package org.imixs.workflow.jaxrs
Klasse XMLItemCollectionWriter
java.lang.Object
org.imixs.workflow.jaxrs.XMLItemCollectionWriter
- Alle implementierten Schnittstellen:
jakarta.ws.rs.ext.MessageBodyWriter<XMLDocument>
@Provider
@Produces("text/html")
public class XMLItemCollectionWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<XMLDocument>
This class translates a XMLDocument into a HTML representation.
- Version:
- 1.1
- Autor:
- rsoika
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringconvertValuesToString(List values) This method converts the Values of a vector into a string representation.longgetSize(XMLDocument 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) static voidprintHead(BufferedWriter bw, String contentType, String encoding) This method prints the generic HTML Header for HTML output, including a default CSS definition for table layout.static voidprintXMLItemCollectionHTML(BufferedWriter bw, XMLDocument xmlworkItem) This Method prints a single XMLItemCollection in html format.voidwriteTo(XMLDocument xmlItemCollection, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Konstruktordetails
-
XMLItemCollectionWriter
public XMLItemCollectionWriter()
-
-
Methodendetails
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Angegeben von:
isWriteablein Schnittstellejakarta.ws.rs.ext.MessageBodyWriter<XMLDocument>
-
writeTo
public void writeTo(XMLDocument xmlItemCollection, 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- Angegeben von:
writeToin Schnittstellejakarta.ws.rs.ext.MessageBodyWriter<XMLDocument>- Löst aus:
IOExceptionjakarta.ws.rs.WebApplicationException
-
getSize
public long getSize(XMLDocument arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4) - Angegeben von:
getSizein Schnittstellejakarta.ws.rs.ext.MessageBodyWriter<XMLDocument>
-
printXMLItemCollectionHTML
public static void printXMLItemCollectionHTML(BufferedWriter bw, XMLDocument xmlworkItem) throws IOException This Method prints a single XMLItemCollection in html format. The items are sorted by name- Parameter:
out-workItem-- Löst aus:
IOException
-
convertValuesToString
This method converts the Values of a vector into a string representation. Multivalues will be separated with '~' characters. Date Objects will be converted into a short String representation taking the server locale- Parameter:
values-- Gibt zurück:
-
printHead
public static void printHead(BufferedWriter bw, String contentType, String encoding) throws IOException This method prints the generic HTML Header for HTML output, including a default CSS definition for table layout. The meta tag Content-Type is generated in case a contentType and encoding is provided.- Parameter:
bw-- Löst aus:
IOException
-