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 classXMLHttpRequestExchange.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 voidabort()voidaddRequestHeader(String name, String value)StringgetAllResponseHeaders()StringgetMethod()intgetReadyState()StringgetResponseHeader(String name)intgetResponseStatus()StringgetResponseStatusText()StringgetResponseText()voidsend()voidsetRequestContent(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
-