Class StreamingXPATH
- java.lang.Object
-
- org.apache.synapse.util.streaming_xpath.StreamingXPATH
-
public class StreamingXPATH extends Object
-
-
Constructor Summary
Constructors Constructor Description StreamingXPATH(String xPath)This constructor is responsible For Create a Custom XPATH Parser Object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamingParsergetStreamingParser()StringgetStringValue(InputStream inputStream)This will return the XPATH expression's result when you provide a Input Stream To a XMLStringgetStringValue(org.apache.axiom.om.OMElement documentElement)This will return the XPATH expression's result when you provide a Input Stream To a XMLStringgetxPath()voidsetStreamingParser(StreamingParser streamingParser)voidsetxPath(String xPath)
-
-
-
Constructor Detail
-
StreamingXPATH
public StreamingXPATH(String xPath) throws StreamingXPATHException
This constructor is responsible For Create a Custom XPATH Parser Object- Parameters:
xPath- is the XPATH String- Throws:
StreamingXPATHException
-
-
Method Detail
-
getStringValue
public String getStringValue(InputStream inputStream) throws XMLStreamException, StreamingXPATHException
This will return the XPATH expression's result when you provide a Input Stream To a XML- Parameters:
inputStream- for a XML- Returns:
- Result of the XPATH expression
- Throws:
XMLStreamExceptionStreamingXPATHException
-
getStringValue
public String getStringValue(org.apache.axiom.om.OMElement documentElement) throws XMLStreamException, StreamingXPATHException
This will return the XPATH expression's result when you provide a Input Stream To a XML- Parameters:
documentElement- for a XML- Returns:
- Result of the XPATH expression
- Throws:
XMLStreamExceptionStreamingXPATHException
-
getxPath
public String getxPath()
-
setxPath
public void setxPath(String xPath)
-
getStreamingParser
public StreamingParser getStreamingParser()
-
setStreamingParser
public void setStreamingParser(StreamingParser streamingParser)
-
-