Java com.google.gwt.xhr.client XMLHttpRequest fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.xhr.client XMLHttpRequest fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.xhr.client XMLHttpRequest.

The text is from its open source code.

Subclass

com.google.gwt.xhr.client.XMLHttpRequest has subclasses.
Click this link to see all its subclasses.

Field

intUNSENT
When constructed, the XMLHttpRequest object must be in the UNSENT state.
intOPENED
The OPENED state is the state of the object when the open() method has been successfully invoked.
intHEADERS_RECEIVED
The HEADERS_RECEIVED state is the state of the object when all response headers have been received.
intLOADING
The LOADING state is the state of the object when the response entity body is being received.
intDONE
The DONE state is the state of the object when either the data transfer has been completed or something went wrong during the transfer (infinite redirects for instance).

Method

voidabort()
Aborts the current request.
voidclearOnReadyStateChange()
Clears the ReadyStateChangeHandler .
XMLHttpRequestcreate()
Creates an XMLHttpRequest object.
StringgetAllResponseHeaders()
Gets all the HTTP response headers, as a single string.
intgetReadyState()
Get's the current ready-state
StringgetResponseHeader(String header)
Gets an HTTP response header.
StringgetResponseText()
Gets the response text.
intgetStatus()
Gets the status code.
StringgetStatusText()
Gets the status text.
voidopen(String httpMethod, String url)
Opens an asynchronous connection.
voidopen(final String httpMethod, String url, String user, String password)
Opens an asynchronous connection.
voidsend()
Initiates a request with no request data.
voidsend(String requestData)
Initiates a request with data.
voidsetOnReadyStateChange(ReadyStateChangeHandler handler)
Sets the ReadyStateChangeHandler to be notified when the object's ready-state changes.
voidsetRequestHeader(String header, String value)
Sets single request header.