java.lang.Objectorg.mozilla.javascript.ScriptableObject
org.wso2.mashup.hostobjects.wsrequest.WSRequestHostImpl
public class WSRequestHostImpl
Mozilla Rhino host Object Implementation of the WSRequest Specification. See the WSRequest Host Object reference guide for more information.
| Field Summary |
|---|
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
WSRequestHostImpl()
Constructor for the use by Rhino |
|
| Method Summary | |
|---|---|
java.lang.String |
getClassName()
Returns the name to be used for this JavaScript Object. |
static org.mozilla.javascript.Scriptable |
jsConstructor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
Constructor the user will be using inside javaScript |
static void |
jsFunction_open(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.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,
java.lang.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,
java.lang.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 The WebServiceError object encapsulates information about the cause of a failed Web service invocation. |
org.mozilla.javascript.Scriptable |
jsGet_onreadystatechange()
Getter for the 'onreadystatechange' javascript function. |
int |
jsGet_readyState()
Getter for the readyState property readyState property represents current state of the object, which can be one of the following values: 0: The object has not been initialized by calling the open() method. |
org.mozilla.javascript.Scriptable |
jsGet_responseE4X()
Getter for the responseE4X property. |
java.lang.String |
jsGet_responseText()
Getter for the responseText property. |
org.mozilla.javascript.Scriptable |
jsGet_responseXML()
Getter for the responseXML property. |
void |
jsSet_onreadystatechange(org.mozilla.javascript.Function function)
Setter for the 'onreadystatechange' javascript function. |
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSRequestHostImpl()
| Method Detail |
|---|
public static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
public java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObject
public static void jsFunction_open(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] arguments,
org.mozilla.javascript.Function funObj)
throws org.wso2.mashup.MashupFault
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.wso2.mashup.MashupFault
public static void jsFunction_openWSDL(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] arguments,
org.mozilla.javascript.Function funObj)
throws org.wso2.mashup.MashupFault
org.wso2.mashup.MashupFault
public static void jsFunction_send(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
java.lang.Object[] arguments,
org.mozilla.javascript.Function funObj)
throws org.wso2.mashup.MashupFault
void send ( [in Document payload | in XMLString payload | in XMLString payload ]);See WSRequest host object reference & WSRequest specification for more details.
org.wso2.mashup.MashupFaultpublic java.lang.String jsGet_responseText()
public org.mozilla.javascript.Scriptable jsGet_responseE4X()
public org.mozilla.javascript.Scriptable jsGet_responseXML()
public 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()