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 Object
- implements javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.XMLItemCollection>
|
Method Summary |
static String |
convertValuesToString(Vector values)
This method converts the Values of a vector into a string representation. |
long |
getSize(org.imixs.workflow.xml.XMLItemCollection arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
javax.ws.rs.core.MediaType arg4)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
static void |
printHead(BufferedWriter bw)
prints the generic HTML Head for HTML output. |
static void |
printXMLItemCollectionHTML(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,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
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(Class<?> type,
Type genericType,
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,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.imixs.workflow.xml.XMLItemCollection>
- Throws:
IOException
javax.ws.rs.WebApplicationException
getSize
public long getSize(org.imixs.workflow.xml.XMLItemCollection arg0,
Class<?> arg1,
Type arg2,
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(BufferedWriter bw,
org.imixs.workflow.xml.XMLItemCollection xmlworkItem)
throws IOException
- This Method prints a single XMLItemCollection in html format
- Parameters:
out - workItem -
- Throws:
IOException
convertValuesToString
public static String convertValuesToString(Vector 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(BufferedWriter bw)
throws IOException
- prints the generic HTML Head for HTML output.
The method genereates a default CSS definition for table output
- Parameters:
bw -
- Throws:
IOException
Copyright © 2010-2012 Imixs Software Solutions GmbH. All Rights Reserved.