Package org.cometd.javascript
Class XMLHttpRequestExchange
java.lang.Object
org.cometd.javascript.XMLHttpRequestExchange
This class is the underlying implementation of JavaScript's
window.XMLHttpRequest in browser.js.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionXMLHttpRequestExchange(Object client, JavaScript javaScript, Object jsThis, String httpMethod, String url, boolean async) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidaddRequestHeader(String name, String value) intgetResponseHeader(String name) intvoidsend()voidsetRequestContent(String data)
-
Constructor Details
-
XMLHttpRequestExchange
public XMLHttpRequestExchange(Object client, JavaScript javaScript, Object jsThis, String httpMethod, String url, boolean async)
-
-
Method Details
-
addRequestHeader
-
getMethod
-
setRequestContent
-
getReadyState
public int getReadyState() -
getResponseText
-
getResponseStatus
public int getResponseStatus() -
getResponseStatusText
-
abort
public void abort() -
getAllResponseHeaders
-
getResponseHeader
-
send
- Throws:
Exception
-