An encapsulation of everything needed to make a Xhr request. NOTE: This is used internal to the XhrManager.
extends goog.Disposable| Instance Method Summary | |
disposeInternal()Deletes or nulls out any references to COM objects, DOM nodes, or other disposable objects. Classes that extend {@code goog.Disposable} should override this method. Not reentrant. To avoid calling it twice, it must only be called from the subclass' {@code disposeInternal} method. Everywhere else the public {@code dispose} method must be used. For example:
mypackage.MyClass = function() {
goog.base(this);
// Constructor logic specific to MyClass.
...
};
goog.inherits(mypackage.MyClass, goog.Disposable);
mypackage.MyClass.prototype.disposeInternal = function() {
goog.base(this, 'disposeInternal');
// Dispose logic specific to MyClass.
...
};
| |
getAborted() ⇒ booleanGets the aborted status. | |
getAttemptCount() ⇒ numberGets the number of attempts so far. | |
getCompleteCallback() ⇒ (Function|null|undefined)Gets the callback for when the request is complete. | |
getCompleted() ⇒ booleanGets the completed status. | |
getContent() ⇒ (string|undefined)Gets the post data. | |
getHeaders() ⇒ (Object|goog.structs.Map|null)Gets the map of headers. | |
getMaxRetries() ⇒ numberGets the maximum number of times the request should be retried. | |
getMethod() ⇒ stringGets the send method. | |
getUrl() ⇒ stringGets the uri. | |
getXhrEventCallback() ⇒ (Function|null|undefined)Gets the callback attached to the events of the XhrIo object. | |
hasReachedMaxRetries() ⇒ booleanReturns whether the request has reached the maximum number of retries. | |
increaseAttemptCount()Increases the number of attempts so far. | |
setAborted(boolean aborted)Sets the aborted status. | |
setCompleted(boolean complete)Sets the completed status. | |