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

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

package net.java.html.lib.angular.ng;
public class IHttpProvider extends net.java.html.lib.angular.ng.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.ng.IHttpProviderDefaults.class, "defaults");
  public net.java.html.lib.angular.ng.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$304($js(this));
  }
  public net.java.html.lib.angular.ng.IHttpProvider useApplyAsync(java.lang.Boolean value) {
    return (net.java.html.lib.angular.ng.IHttpProvider)net.java.html.lib.angular.ng.IHttpProvider.$as($Typings$.useApplyAsync$305($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$306($js(this), value));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy