Class DataRetrievalUtil


  • public class DataRetrievalUtil
    extends Object
    • Constructor Detail

      • DataRetrievalUtil

        public DataRetrievalUtil()
    • Method Detail

      • buildOM

        public org.apache.axiom.om.OMElement buildOM​(ClassLoader classLoader,
                                                     String file)
                                              throws DataRetrievalException
        Loading xml file content and convert to OMElement.
        Parameters:
        file - - file path relative to the Service Repository
        Returns:
        OMElement format of the xml file content
        Throws:
        DataRetrievalException
      • convertToOMElement

        public static org.apache.axiom.om.OMElement convertToOMElement​(InputStream servicexmlStream)
                                                                throws XMLStreamException,
                                                                       org.apache.axiom.om.OMException
        Convert servicexmlStream to OMElement
        Parameters:
        servicexmlStream - InputStream contain xml content
        Returns:
        OMElement format of the xml content
        Throws:
        XMLStreamException
        org.apache.axiom.om.OMException