Class 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.
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JadexXMLBodyReader

        public JadexXMLBodyReader()
    • 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 interface javax.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 interface javax.ws.rs.ext.MessageBodyReader<java.lang.Object>
        Throws:
        java.io.IOException
        javax.ws.rs.WebApplicationException