Package org.cometd.javascript
Class XMLHttpRequestExchange
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.cometd.javascript.XMLHttpRequestExchange
-
- All Implemented Interfaces:
java.io.Serializable,org.mozilla.javascript.ConstProperties,org.mozilla.javascript.debug.DebuggableObject,org.mozilla.javascript.Scriptable
public class XMLHttpRequestExchange extends org.mozilla.javascript.ScriptableObject- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXMLHttpRequestExchange.CometDExchange
-
Constructor Summary
Constructors Constructor Description XMLHttpRequestExchange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawait()java.lang.StringgetClassName()booleanisAsynchronous()voidjsConstructor(java.lang.Object client, java.lang.Object threadModel, org.mozilla.javascript.Scriptable thiz, java.lang.String method, java.lang.String url, boolean async)voidjsFunction_abort()voidjsFunction_addRequestHeader(java.lang.String name, java.lang.String value)java.lang.StringjsFunction_getAllResponseHeaders()java.lang.StringjsFunction_getResponseHeader(java.lang.String name)voidjsFunction_send()voidjsFunction_setRequestContent(java.lang.String data)java.lang.StringjsGet_method()intjsGet_readyState()intjsGet_responseStatus()java.lang.StringjsGet_responseStatusText()java.lang.StringjsGet_responseText()-
Methods inherited from class org.mozilla.javascript.ScriptableObject
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, size
-
-
-
-
Method Detail
-
jsConstructor
public void jsConstructor(java.lang.Object client, java.lang.Object threadModel, org.mozilla.javascript.Scriptable thiz, java.lang.String method, java.lang.String url, boolean async)
-
getClassName
public java.lang.String getClassName()
- Specified by:
getClassNamein interfaceorg.mozilla.javascript.Scriptable- Specified by:
getClassNamein classorg.mozilla.javascript.ScriptableObject
-
isAsynchronous
public boolean isAsynchronous()
-
await
public void await() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutException
-
jsFunction_addRequestHeader
public void jsFunction_addRequestHeader(java.lang.String name, java.lang.String value)
-
jsGet_method
public java.lang.String jsGet_method()
-
jsFunction_setRequestContent
public void jsFunction_setRequestContent(java.lang.String data) throws java.io.UnsupportedEncodingException- Throws:
java.io.UnsupportedEncodingException
-
jsGet_readyState
public int jsGet_readyState()
-
jsGet_responseText
public java.lang.String jsGet_responseText()
-
jsGet_responseStatus
public int jsGet_responseStatus()
-
jsGet_responseStatusText
public java.lang.String jsGet_responseStatusText()
-
jsFunction_abort
public void jsFunction_abort()
-
jsFunction_getAllResponseHeaders
public java.lang.String jsFunction_getAllResponseHeaders()
-
jsFunction_getResponseHeader
public java.lang.String jsFunction_getResponseHeader(java.lang.String name)
-
jsFunction_send
public void jsFunction_send() throws java.lang.Exception- Throws:
java.lang.Exception
-
-