Package org.cometd.javascript
Class XMLHttpRequestExchange
java.lang.Object
org.cometd.javascript.XMLHttpRequestExchange
public class XMLHttpRequestExchange extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XMLHttpRequestExchange.CometDExchange
-
Constructor Summary
Constructors Constructor Description XMLHttpRequestExchange(Object client, JavaScript javaScript, jdk.nashorn.api.scripting.ScriptObjectMirror thiz, String method, String url, boolean async)
-
Method Summary
Modifier and Type Method Description void
abort()
void
addRequestHeader(String name, String value)
String
getAllResponseHeaders()
String
getMethod()
int
getReadyState()
String
getResponseHeader(String name)
int
getResponseStatus()
String
getResponseStatusText()
String
getResponseText()
void
send()
void
setRequestContent(String data)
-
Constructor Details
-
XMLHttpRequestExchange
public XMLHttpRequestExchange(Object client, JavaScript javaScript, jdk.nashorn.api.scripting.ScriptObjectMirror thiz, String method, 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
-