Package org.apache.synapse.mediators.bsf
Class JavaScriptXmlHelper
java.lang.Object
org.apache.bsf.xml.XMLHelper
org.apache.bsf.xml.DefaultXMLHelper
org.apache.synapse.mediators.bsf.JavaScriptXmlHelper
Deprecated.
This class will provide the operation to getPayloadXML and setPayload of CommonScriptMessageContext to convert
between XML and ScriptXML object
since there is an api change in rhino17,This class is provided instead of getting Helper class by
XMLHelper.getArgHelper(engine) in bsf
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.axiom.om.OMElementtoOMElement(Object scriptXML) Deprecated.This method will convert the message payload in to xmltoScriptXML(org.apache.axiom.om.OMElement omElement) Deprecated.This method will convert the message payload in to ScriptXML ObjectMethods inherited from class org.apache.bsf.xml.DefaultXMLHelper
toDOMNode, toScriptXML, toScriptXML, toXMLStreamReaderMethods inherited from class org.apache.bsf.xml.XMLHelper
getArgHelper, init
-
Method Details
-
toOMElement
Deprecated.This method will convert the message payload in to xml- Overrides:
toOMElementin classorg.apache.bsf.xml.DefaultXMLHelper- Parameters:
scriptXML- from java script Scriptable- Returns:
- XML content as OMElement wrapped in Scriptable object
- Throws:
ScriptException- when error
-
toScriptXML
Deprecated.This method will convert the message payload in to ScriptXML Object- Overrides:
toScriptXMLin classorg.apache.bsf.xml.DefaultXMLHelper- Parameters:
omElement-- Returns:
- Scriptable object by adding the xml content
- Throws:
ScriptException- when error
-