Package jadex.extension.rs.publish
Class JadexXMLBodyReader
- java.lang.Object
-
- jadex.extension.rs.publish.JadexXMLBodyReader
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
@Provider public class JadexXMLBodyReader extends java.lang.Object implements javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
Body reader for Jersey. Allows to use the Jadex XML Codec for reading XML for parameters.
-
-
Constructor Summary
Constructors Constructor Description JadexXMLBodyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(java.lang.Class<?> type, java.lang.reflect.Type generictype, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediatype)
Test if the object is readable.java.lang.Object
readFrom(java.lang.Class<java.lang.Object> 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.String> httpheaders, java.io.InputStream entitystream)
Read the object from the
-
-
-
Method Detail
-
isReadable
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type generictype, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediatype)
Test if the object is readable.- Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<java.lang.Object>
-
readFrom
public java.lang.Object readFrom(java.lang.Class<java.lang.Object> 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.String> httpheaders, java.io.InputStream entitystream) throws java.io.IOException, javax.ws.rs.WebApplicationException
Read the object from the- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<java.lang.Object>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
-
-