Package org.cometd.javascript
Class XMLHttpRequestExchange
- java.lang.Object
-
- org.cometd.javascript.XMLHttpRequestExchange
-
public class XMLHttpRequestExchange extends Object
This class is the underlying implementation of JavaScript's
window.XMLHttpRequestinbrowser.js.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXMLHttpRequestExchange.CometDExchange
-
Constructor Summary
Constructors Constructor Description XMLHttpRequestExchange(Object client, JavaScript javaScript, Object jsThis, String httpMethod, String url, boolean async)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
XMLHttpRequestExchange
public XMLHttpRequestExchange(Object client, JavaScript javaScript, Object jsThis, String httpMethod, String url, boolean async)
-
-
Method Detail
-
getMethod
public String getMethod()
-
setRequestContent
public void setRequestContent(String data)
-
getReadyState
public int getReadyState()
-
getResponseText
public String getResponseText()
-
getResponseStatus
public int getResponseStatus()
-
getResponseStatusText
public String getResponseStatusText()
-
abort
public void abort()
-
getAllResponseHeaders
public String getAllResponseHeaders()
-
-