Package org.cometd.javascript
Class XMLHttpRequestExchange
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.cometd.javascript.XMLHttpRequestExchange
- All Implemented Interfaces:
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 class
XMLHttpRequestExchange.CometDExchange
-
Field Summary
-
Constructor Summary
Constructors Constructor Description XMLHttpRequestExchange()
-
Method Summary
Modifier and Type Method Description void
await()
String
getClassName()
boolean
isAsynchronous()
void
jsConstructor(Object client, Object threadModel, org.mozilla.javascript.Scriptable thiz, String method, String url, boolean async)
void
jsFunction_abort()
void
jsFunction_addRequestHeader(String name, String value)
String
jsFunction_getAllResponseHeaders()
String
jsFunction_getResponseHeader(String name)
void
jsFunction_send()
void
jsFunction_setRequestContent(String data)
String
jsGet_method()
int
jsGet_readyState()
int
jsGet_responseStatus()
String
jsGet_responseStatusText()
String
jsGet_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
-
Constructor Details
-
XMLHttpRequestExchange
public XMLHttpRequestExchange()
-
-
Method Details
-
jsConstructor
-
getClassName
- Specified by:
getClassName
in interfaceorg.mozilla.javascript.Scriptable
- Specified by:
getClassName
in classorg.mozilla.javascript.ScriptableObject
-
isAsynchronous
public boolean isAsynchronous() -
await
-
jsFunction_addRequestHeader
-
jsGet_method
-
jsFunction_setRequestContent
- Throws:
UnsupportedEncodingException
-
jsGet_readyState
public int jsGet_readyState() -
jsGet_responseText
-
jsGet_responseStatus
public int jsGet_responseStatus() -
jsGet_responseStatusText
-
jsFunction_abort
public void jsFunction_abort() -
jsFunction_getAllResponseHeaders
-
jsFunction_getResponseHeader
-
jsFunction_send
- Throws:
Exception
-