All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.html.lib.angular.IHttpProvider Maven / Gradle / Ivy

package net.java.html.lib.angular;
public class IHttpProvider extends IServiceProvider {
  protected IHttpProvider(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(IHttpProvider.class);
    }
    @Override
    public IHttpProvider create(java.lang.Object obj) {
      return obj == null ? null : new IHttpProvider(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static IHttpProvider $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  public net.java.html.lib.Objs.Property defaults = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.angular.IHttpProviderDefaults.class, "defaults");
  public IHttpProviderDefaults defaults() { return defaults.get(); }
  /**
  * Register service factories (names or implementations) for interceptors which are called before and after
  * each request.
  */
  public net.java.html.lib.Objs.Property interceptors = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.Array.class, "interceptors");
  public net.java.html.lib.Objs[] interceptors() { return interceptors.get(); }
  public java.lang.Boolean useApplyAsync() {
    return $Typings$.useApplyAsync$212($js(this));
  }
  public IHttpProvider useApplyAsync(java.lang.Boolean value) {
    return (IHttpProvider)net.java.html.lib.angular.IHttpProvider.$as($Typings$.useApplyAsync$213($js(this), value));
  }
  /**
  *
  * @param {boolean=} value If true, `$http` will return a normal promise without the `success` and `error` methods.
  * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining.
  *    otherwise, returns the current configured value.
  */
  public net.java.html.lib.Union.A2 useLegacyPromiseExtensions(java.lang.Boolean value) {
    return (net.java.html.lib.Union.A2)net.java.html.lib.Union.$as($Typings$.useLegacyPromiseExtensions$214($js(this), value));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy