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 interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Nested classes/interfaces inherited from interface elemental2.dom.EventTarget
EventTarget.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, EventTarget.RemoveEventListenerOptionsUnionType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
elemental2.core.ArrayBuffer
static final int
int
int
int
static final int
boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
void
addEventListener
(String type, EventListener listener) void
addEventListener
(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) boolean
dispatchEvent
(Event evt) getResponseHeader
(String header) final void
final void
final void
final void
void
open
(String method, XMLHttpRequest.OpenUrlUnionType url) void
open
(String method, XMLHttpRequest.OpenUrlUnionType url, boolean async) void
open
(String method, XMLHttpRequest.OpenUrlUnionType url, boolean async, String user) void
open
(String method, XMLHttpRequest.OpenUrlUnionType url, boolean async, String user, String password) final void
final void
final void
final void
void
overrideMimeType
(String mimeType) void
removeEventListener
(String type, EventListener listener) void
removeEventListener
(String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options) void
send()
final void
send
(elemental2.core.ArrayBuffer data) final void
send
(elemental2.core.ArrayBufferView data) final void
final void
final void
void
final void
void
setRequestHeader
(String header, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
addEventListener
in interfaceEventTarget
-
addEventListener
- Specified by:
addEventListener
in interfaceEventTarget
-
dispatchEvent
- Specified by:
dispatchEvent
in 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:
removeEventListener
in interfaceEventTarget
-
removeEventListener
- Specified by:
removeEventListener
in 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
-