Package org.apache.axis2.dataretrieval
Class DataRetrievalUtil
- java.lang.Object
-
- org.apache.axis2.dataretrieval.DataRetrievalUtil
-
public class DataRetrievalUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description DataRetrievalUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OMElement
buildOM(ClassLoader classLoader, String file)
Loading xml file content and convert to OMElement.static OMElement
convertToOMElement(InputStream servicexmlStream)
Convert servicexmlStream to OMElementstatic DataRetrievalUtil
getInstance()
-
-
-
Method Detail
-
getInstance
public static DataRetrievalUtil getInstance()
-
buildOM
public 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 OMElement convertToOMElement(InputStream servicexmlStream) throws XMLStreamException, OMException
Convert servicexmlStream to OMElement- Parameters:
servicexmlStream
- InputStream contain xml content- Returns:
- OMElement format of the xml content
- Throws:
XMLStreamException
OMException
-
-