@Provider
public class JadexXMLBodyWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
| Constructor and Description |
|---|
JadexXMLBodyWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(java.lang.Object t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
Get the size of the result.
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type gtype,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediatype)
Test if the writer can handle the content.
|
void |
writeTo(java.lang.Object t,
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)
Write the object to the output stream.
|
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type gtype,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediatype)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>public void writeTo(java.lang.Object t,
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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionpublic long getSize(java.lang.Object t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>