@Provider @Produces(value="text/html") public class XMLItemCollectionWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<XMLItemCollection>
Constructor and Description |
---|
XMLItemCollectionWriter() |
Modifier and Type | Method and Description |
---|---|
static String |
convertValuesToString(List values)
This method converts the Values of a vector into a string representation.
|
long |
getSize(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,
XMLItemCollection xmlworkItem)
This Method prints a single XMLItemCollection in html format.
|
void |
writeTo(XMLItemCollection xmlItemCollection,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<XMLItemCollection>
public void writeTo(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
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<XMLItemCollection>
IOException
javax.ws.rs.WebApplicationException
public long getSize(XMLItemCollection arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<XMLItemCollection>
public static void printXMLItemCollectionHTML(BufferedWriter bw, XMLItemCollection xmlworkItem) throws IOException
out
- workItem
- IOException
public static String convertValuesToString(List values)
values
- public static void printHead(BufferedWriter bw) throws IOException
bw
- IOException
Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.