Class NashornJavaScriptXmlHelper


  • public class NashornJavaScriptXmlHelper
    extends org.apache.bsf.xml.DefaultXMLHelper
    This class will provide the operations to convert between xml elements of scripts and OMElements.
    • Constructor Detail

      • NashornJavaScriptXmlHelper

        public NashornJavaScriptXmlHelper()
    • Method Detail

      • toOMElement

        public org.apache.axiom.om.OMElement toOMElement​(Object scriptXML)
                                                  throws ScriptException
        This method will convert the message payload in to xml.
        Overrides:
        toOMElement in class org.apache.bsf.xml.DefaultXMLHelper
        Parameters:
        scriptXML - from java script
        Returns:
        XML content as OMElement
        Throws:
        ScriptException - when error
      • toScriptXML

        public Object toScriptXML​(org.apache.axiom.om.OMElement omElement)
                           throws ScriptException
        This method will convert the message payload in to xml string.
        Overrides:
        toScriptXML in class org.apache.bsf.xml.DefaultXMLHelper
        Parameters:
        omElement - axiom element representation of xml document
        Returns:
        xml string by adding the xml content
        Throws:
        ScriptException - when error