net.java.html.lib.angular.IHttpPromise Maven / Gradle / Ivy
package net.java.html.lib.angular;
public class IHttpPromise extends IPromise> {
protected IHttpPromise(net.java.html.lib.Objs.Constructor> c, java.lang.Object js) {
super(c, js);
}
private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
$Constructor() {
super(IHttpPromise.class);
}
@Override
public IHttpPromise create(java.lang.Object obj) {
return obj == null ? null : new IHttpPromise(this, obj);
}
};
private static final $Constructor $AS = new $Constructor();
public static IHttpPromise $as(java.lang.Object obj) {
return $AS.create(obj);
}
/**
* The $http legacy promise methods success and error have been deprecated. Use the standard then method instead.
* If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error.
* @deprecated
*/
public IHttpPromise error(IHttpPromiseCallback callback) {
return (IHttpPromise)net.java.html.lib.angular.IHttpPromise.$as($Typings$.error$207($js(this), /* FirstTypeNode*/$js(callback)));
}
/**
* The $http legacy promise methods success and error have been deprecated. Use the standard then method instead.
* If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error.
* @deprecated
*/
public IHttpPromise success(IHttpPromiseCallback callback) {
return (IHttpPromise)net.java.html.lib.angular.IHttpPromise.$as($Typings$.success$208($js(this), /* FirstTypeNode*/$js(callback)));
}
}