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

net.java.html.lib.jquery.JQueryXHR Maven / Gradle / Ivy

package net.java.html.lib.jquery;
public class JQueryXHR extends net.java.html.lib.dom.XMLHttpRequest {
  protected JQueryXHR(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(JQueryXHR.class);
    }
    @Override
    public JQueryXHR create(java.lang.Object obj) {
      return obj == null ? null : new JQueryXHR(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static JQueryXHR $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  /**
  * Property containing the parsed response if the response Content-Type is json
  */
  public net.java.html.lib.Objs.Property responseJSON = net.java.html.lib.Objs.Property.create(this, java.lang.Object.class, "responseJSON");
  /**
  * Cancel the request.
  *
  * @param statusText A string passed as the textStatus parameter for the done callback. Default value: "canceled"
  */
  public void abort(java.lang.String statusText) {
    $Typings$.abort$660($js(this), statusText);
  }
  /**
  * Cancel the request.
  *
  * @param statusText A string passed as the textStatus parameter for the done callback. Default value: "canceled"
  */
  public void abort() {
    $Typings$.abort$661($js(this));
  }
  /**
  * A function to be called if the request fails.
  */
  public void error(net.java.html.lib.jquery.JQueryXHR xhr, java.lang.String textStatus, java.lang.String errorThrown) {
    $Typings$.error$662($js(this), /* FirstTypeNode*/$js(xhr), textStatus, errorThrown);
  }
  /**
  * The .overrideMimeType() method may be used in the beforeSend() callback function, for example, to modify the response content-type header. As of jQuery 1.5.1, the jqXHR object also contains the overrideMimeType() method (it was available in jQuery 1.4.x, as well, but was temporarily removed in jQuery 1.5).
  */
  public void overrideMimeType(java.lang.String mimeType) {
    $Typings$.overrideMimeType$663($js(this), mimeType);
  }
  /**
  * Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to deferred.then() for implementation details.
  */
  public  net.java.html.lib.jquery.JQueryPromise then(net.java.html.lib.Function.A3 doneCallback, net.java.html.lib.Function.A3 failCallback) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.then$664($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneCallback, new Class[] {java.lang.Object.class, java.lang.String.class, net.java.html.lib.jquery.JQueryXHR.class})), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(failCallback, new Class[] {net.java.html.lib.jquery.JQueryXHR.class, java.lang.String.class, java.lang.Object.class}))));
  }
  /**
  * Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to deferred.then() for implementation details.
  */
  public  net.java.html.lib.jquery.JQueryPromise then(net.java.html.lib.Function.A3 doneCallback) {
    return (net.java.html.lib.jquery.JQueryPromise)net.java.html.lib.jquery.JQueryPromise.$as($Typings$.then$665($js(this), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(doneCallback, new Class[] {java.lang.Object.class, java.lang.String.class, net.java.html.lib.jquery.JQueryXHR.class}))));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy