Example usage for Java com.google.gwt.xhr.client XMLHttpRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
int | UNSENT When constructed, the XMLHttpRequest object must be in the UNSENT state. |
int | OPENED The OPENED state is the state of the object when the open() method has been successfully invoked. |
int | HEADERS_RECEIVED The HEADERS_RECEIVED state is the state of the object when all response headers have been received. |
int | LOADING The LOADING state is the state of the object when the response entity body is being received. |
int | DONE 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). |
void | abort() Aborts the current request. |
void | clearOnReadyStateChange() Clears the ReadyStateChangeHandler . |
XMLHttpRequest | create() Creates an XMLHttpRequest object. |
String | getAllResponseHeaders() Gets all the HTTP response headers, as a single string. |
int | getReadyState() Get's the current ready-state |
String | getResponseHeader(String header) Gets an HTTP response header. |
String | getResponseText() Gets the response text. |
int | getStatus() Gets the status code. |
String | getStatusText() Gets the status text. |
void | open(String httpMethod, String url) Opens an asynchronous connection. |
void | open(final String httpMethod, String url, String user, String password) Opens an asynchronous connection. |
void | send() Initiates a request with no request data. |
void | send(String requestData) Initiates a request with data. |
void | setOnReadyStateChange(ReadyStateChangeHandler handler) Sets the ReadyStateChangeHandler to be notified when the object's ready-state changes. |
void | setRequestHeader(String header, String value) Sets single request header. |