org.imixs.workflow.jaxrs
Class XMLItemCollectionWriter
java.lang.Object
org.imixs.workflow.jaxrs.XMLItemCollectionWriter
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.XMLItemCollection>
@Provider
public class XMLItemCollectionWriter
- extends java.lang.Object
- implements javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.XMLItemCollection>
|
Method Summary |
static java.lang.String |
convertValuesToString(java.util.List values)
This method converts the Values of a vector into a string representation. |
long |
getSize(org.imixs.workflow.xml.XMLItemCollection arg0,
java.lang.Class<?> arg1,
java.lang.reflect.Type arg2,
java.lang.annotation.Annotation[] arg3,
javax.ws.rs.core.MediaType arg4)
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
static void |
printHead(java.io.BufferedWriter bw)
prints the generic HTML Head for HTML output. |
static void |
printXMLItemCollectionHTML(java.io.BufferedWriter bw,
org.imixs.workflow.xml.XMLItemCollection xmlworkItem)
This Method prints a single XMLItemCollection in html format |
void |
writeTo(org.imixs.workflow.xml.XMLItemCollection xmlItemCollection,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLItemCollectionWriter
public XMLItemCollectionWriter()
isWriteable
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.XMLItemCollection>
writeTo
public void writeTo(org.imixs.workflow.xml.XMLItemCollection xmlItemCollection,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.XMLItemCollection>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
getSize
public long getSize(org.imixs.workflow.xml.XMLItemCollection arg0,
java.lang.Class<?> arg1,
java.lang.reflect.Type arg2,
java.lang.annotation.Annotation[] arg3,
javax.ws.rs.core.MediaType arg4)
- Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.XMLItemCollection>
printXMLItemCollectionHTML
public static void printXMLItemCollectionHTML(java.io.BufferedWriter bw,
org.imixs.workflow.xml.XMLItemCollection xmlworkItem)
throws java.io.IOException
- This Method prints a single XMLItemCollection in html format
- Parameters:
out - workItem -
- Throws:
java.io.IOException
convertValuesToString
public static java.lang.String convertValuesToString(java.util.List values)
- 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
- Parameters:
values -
- Returns:
printHead
public static void printHead(java.io.BufferedWriter bw)
throws java.io.IOException
- prints the generic HTML Head for HTML output.
The method genereates a default CSS definition for table output
- Parameters:
bw -
- Throws:
java.io.IOException
Copyright © 2010-2012 Imixs Software Solutions GmbH. All Rights Reserved.