Package jadex.extension.rs.publish
Class JadexXMLBodyWriter
- java.lang.Object
- 
- jadex.extension.rs.publish.JadexXMLBodyWriter
 
- 
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
 
 @Provider public class JadexXMLBodyWriter extends java.lang.Object implements javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>Body writer for Jersey. Allows to use the Jadex XML Codec for producing XML for parameters.
- 
- 
Constructor SummaryConstructors Constructor Description JadexXMLBodyWriter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(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.booleanisWriteable(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.voidwriteTo(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.
 
- 
- 
- 
Method Detail- 
isWriteablepublic 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.- Specified by:
- isWriteablein interface- javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
 
 - 
writeTopublic 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.WebApplicationExceptionWrite the object to the output stream.- Specified by:
- writeToin interface- javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
- Throws:
- java.io.IOException
- javax.ws.rs.WebApplicationException
 
 - 
getSizepublic 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.- Specified by:
- getSizein interface- javax.ws.rs.ext.MessageBodyWriter<java.lang.Object>
 
 
- 
 
-