
fr.lteconsulting.angular2gwt.client.interop.xmlhttprequest.XMLHttpRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of angular2-gwt Show documentation
Show all versions of angular2-gwt Show documentation
Allows to develop Angular 2 applications with GWT
package fr.lteconsulting.angular2gwt.client.interop.xmlhttprequest;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "XMLHttpRequest" )
public class XMLHttpRequest
{
@JsMethod
public native void open( String method, String url, boolean isAsync );
@JsMethod
public native void send( Object data );
@JsProperty
public native void setOnreadystatechange( ReadyStateHandler handler );
@JsMethod
public native void setRequestHeader( String headerName, String value );
@JsProperty
public native int getReadyState();
@JsProperty
public native int getStatus();
@JsProperty
public native String getResponseText();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy