public class WSRequestHostObject
extends org.mozilla.javascript.ScriptableObject
| Constructor and Description |
|---|
WSRequestHostObject()
Constructor for the use by Rhino
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Returns the name to be used for this JavaScript Object.
|
static org.mozilla.javascript.Scriptable |
jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
Constructor the user will be using inside javaScript
|
static String |
jsFunction_getResponseHeader(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] arguments,
org.mozilla.javascript.Function funObj) |
static void |
jsFunction_open(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] arguments,
org.mozilla.javascript.Function funObj)
This method prepares the WSRequest object to invoke a Web service.
|
static void |
jsFunction_openWSDL(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] arguments,
org.mozilla.javascript.Function funObj)
This function enables you to give a WSDL and get WSRequest configured.
|
static void |
jsFunction_send(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] arguments,
org.mozilla.javascript.Function funObj)
This method invokes the Web service with the requested payload.
|
org.mozilla.javascript.Scriptable |
jsGet_error()
Getter for the WebServiceError object
|
org.mozilla.javascript.Scriptable |
jsGet_onreadystatechange()
Getter for the 'onreadystatechange' javascript function.
|
int |
jsGet_readyState()
Getter for the readyState property
|
org.mozilla.javascript.Scriptable |
jsGet_responseE4X()
Getter for the responseE4X property.
|
String |
jsGet_responseText()
Getter for the responseText property.
|
org.mozilla.javascript.Scriptable |
jsGet_responseXML()
Getter for the responseXML property.
|
int |
jsGet_status() |
void |
jsSet_onreadystatechange(org.mozilla.javascript.Function function)
Setter for the 'onreadystatechange' javascript function.
|
protected void |
updateResponse(org.apache.axiom.om.OMElement response) |
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizepublic WSRequestHostObject()
public static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx,
Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectpublic static void jsFunction_open(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] arguments,
org.mozilla.javascript.Function funObj)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
void open ( in object options | in String method, in String url [, in boolean async [, in String user [, in String password]]]);See WSRequest host object reference & WSRequest specification for more details.
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic static void jsFunction_openWSDL(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] arguments,
org.mozilla.javascript.Function funObj)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic static void jsFunction_send(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] arguments,
org.mozilla.javascript.Function funObj)
throws org.jaggeryjs.scriptengine.exceptions.ScriptException,
org.apache.axis2.AxisFault
void send ( [in Document payload | in XMLString payload | in XMLString payload ]);See WSRequest host object reference & WSRequest specification for more details.
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionorg.apache.axis2.AxisFaultpublic String jsGet_responseText()
public int jsGet_status()
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionprotected void updateResponse(org.apache.axiom.om.OMElement response)
throws XMLStreamException
XMLStreamExceptionpublic static String jsFunction_getResponseHeader(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable thisObj, Object[] arguments, org.mozilla.javascript.Function funObj) throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic org.mozilla.javascript.Scriptable jsGet_responseE4X()
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic org.mozilla.javascript.Scriptable jsGet_responseXML()
throws org.jaggeryjs.scriptengine.exceptions.ScriptException
org.jaggeryjs.scriptengine.exceptions.ScriptExceptionpublic org.mozilla.javascript.Scriptable jsGet_onreadystatechange()
public void jsSet_onreadystatechange(org.mozilla.javascript.Function function)
public int jsGet_readyState()
public org.mozilla.javascript.Scriptable jsGet_error()
Copyright © 2015 WSO2 Inc. All rights reserved.