Package elemental2.dom
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 int@Nullable elemental2.core.ArrayBuffer@Nullable XMLHttpRequest.OnabortFn@Nullable XMLHttpRequest.OnerrorFn@Nullable XMLHttpRequest.OnloadFn@Nullable XMLHttpRequest.OnloadendFn@Nullable XMLHttpRequest.OnloadstartFn@Nullable XMLHttpRequest.OnprogressFn@Nullable XMLHttpRequest.OnreadystatechangeFn@Nullable XMLHttpRequest.OntimeoutFnstatic final intint@Nullable XMLHttpRequest.ResponseUnionType@Nullable Documentintintstatic final int@Nullable XMLHttpRequestUploadboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidaddEventListener(String type, EventListener listener) voidaddEventListener(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) booleandispatchEvent(Event evt) @Nullable StringgetResponseHeader(String header) final voidfinal voidfinal voidfinal voidopen(String method, URL url, @Nullable Boolean async, @Nullable String user, @Nullable String password) voidopen(String method, XMLHttpRequest.OpenUrlUnionType url) voidopen(String method, XMLHttpRequest.OpenUrlUnionType url, @Nullable Boolean async) voidopen(String method, XMLHttpRequest.OpenUrlUnionType url, @Nullable Boolean async, @Nullable String user) voidopen(String method, XMLHttpRequest.OpenUrlUnionType url, @Nullable Boolean async, @Nullable String user, @Nullable String password) final voidfinal voidfinal voidfinal voidopen(String method, String url, @Nullable Boolean async, @Nullable String user, @Nullable String password) voidoverrideMimeType(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 voidvoidsend(@Nullable XMLHttpRequest.SendDataUnionType data) final voidvoidvoidvoidsetRequestHeader(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 @Nullable 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, @Nullable Boolean async, @Nullable String user, @Nullable String password) -
open
public void open(String method, XMLHttpRequest.OpenUrlUnionType url, @Nullable Boolean async, @Nullable String user) -
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
-
setAttributionReporting
public void setAttributionReporting() -
setAttributionReporting
-
setRequestHeader
-