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 TypeMethodDescriptionvoid
abort()
void
addRequestHeader(String name, String value)
int
getResponseHeader(String name)
int
void
send()
void
setRequestContent(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
-