Class PlainXmlReader

  • All Implemented Interfaces:
    org.apache.cxf.databinding.DataReader<XMLStreamReader>

    public class PlainXmlReader
    extends Object
    implements org.apache.cxf.databinding.DataReader<XMLStreamReader>
    Fake data reader which reads in the whole XML stream and returns a null value instead of the expected POJO.
    Author:
    Dmytro Rud
    • Constructor Detail

      • PlainXmlReader

        public PlainXmlReader()
    • Method Detail

      • read

        public Object read​(org.apache.cxf.service.model.MessagePartInfo part,
                           XMLStreamReader reader)
        Specified by:
        read in interface org.apache.cxf.databinding.DataReader<XMLStreamReader>
      • setAttachments

        public void setAttachments​(Collection<org.apache.cxf.message.Attachment> attachments)
        Specified by:
        setAttachments in interface org.apache.cxf.databinding.DataReader<XMLStreamReader>
      • setProperty

        public void setProperty​(String prop,
                                Object value)
        Specified by:
        setProperty in interface org.apache.cxf.databinding.DataReader<XMLStreamReader>
      • setSchema

        public void setSchema​(Schema s)
        Specified by:
        setSchema in interface org.apache.cxf.databinding.DataReader<XMLStreamReader>