Class XMLHttpRequest
java.lang.Object
elemental2.dom.XMLHttpRequest
- All Implemented Interfaces:
EventTarget
@JsType(isNative=true,
namespace="<global>")
public class XMLHttpRequest
extends Object
implements EventTarget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from interface elemental2.dom.EventTarget
EventTarget.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, EventTarget.RemoveEventListenerOptionsUnionType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intelemental2.core.ArrayBufferstatic final intintintintstatic final intboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidaddEventListener(String type, EventListener listener) voidaddEventListener(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) booleandispatchEvent(Event evt) getResponseHeader(String header) final voidfinal voidfinal voidfinal voidvoidopen(String method, XMLHttpRequest.OpenUrlUnionType url) voidopen(String method, XMLHttpRequest.OpenUrlUnionType url, boolean async) voidopen(String method, XMLHttpRequest.OpenUrlUnionType url, boolean async, String user) voidopen(String method, XMLHttpRequest.OpenUrlUnionType url, boolean async, String user, String password) final voidfinal voidfinal voidfinal voidvoidoverrideMimeType(String mimeType) voidremoveEventListener(String type, EventListener listener) voidremoveEventListener(String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options) voidsend()final voidsend(elemental2.core.ArrayBuffer data) final voidsend(elemental2.core.ArrayBufferView data) final voidfinal voidfinal voidvoidfinal voidvoidsetRequestHeader(String header, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface elemental2.dom.EventTarget
addEventListener, addEventListener, removeEventListener, removeEventListener
-
Field Details
-
DONE
@JsOverlay public static final int DONE -
HEADERS_RECEIVED
@JsOverlay public static final int HEADERS_RECEIVED -
LOADING
@JsOverlay public static final int LOADING -
OPENED
@JsOverlay public static final int OPENED -
UNSENT
@JsOverlay public static final int UNSENT -
mozResponseArrayBuffer
public elemental2.core.ArrayBuffer mozResponseArrayBuffer -
onabort
-
onerror
-
onload
-
onloadend
-
onloadstart
-
onprogress
-
onreadystatechange
-
ontimeout
-
readyState
public int readyState -
response
-
responseText
-
responseType
-
responseURL
-
responseXML
-
status
public int status -
statusText
-
timeout
public int timeout -
upload
-
withCredentials
public boolean withCredentials
-
-
Constructor Details
-
XMLHttpRequest
public XMLHttpRequest()
-
-
Method Details
-
abort
public void abort() -
addEventListener
public void addEventListener(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) - Specified by:
addEventListenerin interfaceEventTarget
-
addEventListener
- Specified by:
addEventListenerin interfaceEventTarget
-
dispatchEvent
- Specified by:
dispatchEventin interfaceEventTarget
-
getAllResponseHeaders
-
getResponseHeader
-
open
public void open(String method, XMLHttpRequest.OpenUrlUnionType url, boolean async, String user, String password) -
open
-
open
-
open
-
open
-
open
-
open
-
open
-
open
-
open
-
open
-
open
-
overrideMimeType
-
removeEventListener
public void removeEventListener(String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options) - Specified by:
removeEventListenerin interfaceEventTarget
-
removeEventListener
- Specified by:
removeEventListenerin interfaceEventTarget
-
send
public void send() -
send
@JsOverlay public final void send(elemental2.core.ArrayBuffer data) -
send
@JsOverlay public final void send(elemental2.core.ArrayBufferView data) -
send
-
send
-
send
-
send
-
send
-
setRequestHeader
-