Class XMLHttpRequestEventTarget

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.javascript.HtmlUnitScriptable
org.htmlunit.javascript.host.event.EventTarget
org.htmlunit.javascript.host.xml.XMLHttpRequestEventTarget
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable
Direct Known Subclasses:
XMLHttpRequest, XMLHttpRequestUpload

public class XMLHttpRequestEventTarget extends EventTarget
A JavaScript object for XMLHttpRequestEventTarget.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
  • Field Summary

    Fields inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST

    Fields inherited from interface org.htmlunit.corejs.javascript.Scriptable

    NOT_FOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on abort.
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on error.
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on load.
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on load end.
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on load start.
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on progress.
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on ready state change.
    org.htmlunit.corejs.javascript.Function
    Returns the event handler that fires on timeout.
    void
    JavaScript constructor.
    void
    setOnabort(org.htmlunit.corejs.javascript.Function abortHandler)
    Sets the event handler that fires on abort.
    void
    setOnerror(org.htmlunit.corejs.javascript.Function errorHandler)
    Sets the event handler that fires on error.
    void
    setOnload(org.htmlunit.corejs.javascript.Function loadHandler)
    Sets the event handler that fires on load.
    void
    setOnloadend(org.htmlunit.corejs.javascript.Function loadendHandler)
    Sets the event handler that fires on load end.
    void
    setOnloadstart(org.htmlunit.corejs.javascript.Function loadstartHandler)
    Sets the event handler that fires on load start.
    void
    setOnprogress(org.htmlunit.corejs.javascript.Function progressHandler)
    Sets the event handler that fires on progress.
    void
    setOnreadystatechange(org.htmlunit.corejs.javascript.Function readyStateChangeHandler)
    Sets the event handler that fires on ready state change.
    void
    setOntimeout(org.htmlunit.corejs.javascript.Function timeoutHandler)
    Sets the event handler that fires on timeout.

    Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject

    applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XMLHttpRequestEventTarget

      public XMLHttpRequestEventTarget()
      Creates an instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class EventTarget
    • getOnload

      public org.htmlunit.corejs.javascript.Function getOnload()
      Returns the event handler that fires on load.
      Returns:
      the event handler that fires on load
    • setOnload

      public void setOnload(org.htmlunit.corejs.javascript.Function loadHandler)
      Sets the event handler that fires on load.
      Parameters:
      loadHandler - the event handler that fires on load
    • getOnerror

      public org.htmlunit.corejs.javascript.Function getOnerror()
      Returns the event handler that fires on error.
      Returns:
      the event handler that fires on error
    • setOnerror

      public void setOnerror(org.htmlunit.corejs.javascript.Function errorHandler)
      Sets the event handler that fires on error.
      Parameters:
      errorHandler - the event handler that fires on error
    • getOnloadstart

      public org.htmlunit.corejs.javascript.Function getOnloadstart()
      Returns the event handler that fires on load start.
      Returns:
      the event handler that fires on load start
    • setOnloadstart

      public void setOnloadstart(org.htmlunit.corejs.javascript.Function loadstartHandler)
      Sets the event handler that fires on load start.
      Parameters:
      loadstartHandler - the event handler that fires on load start
    • getOnloadend

      public org.htmlunit.corejs.javascript.Function getOnloadend()
      Returns the event handler that fires on load end.
      Returns:
      the event handler that fires on load end
    • setOnloadend

      public void setOnloadend(org.htmlunit.corejs.javascript.Function loadendHandler)
      Sets the event handler that fires on load end.
      Parameters:
      loadendHandler - the event handler that fires on load end
    • getOnprogress

      public org.htmlunit.corejs.javascript.Function getOnprogress()
      Returns the event handler that fires on progress.
      Returns:
      the event handler that fires on progress
    • setOnprogress

      public void setOnprogress(org.htmlunit.corejs.javascript.Function progressHandler)
      Sets the event handler that fires on progress.
      Parameters:
      progressHandler - the event handler that fires on progress
    • getOntimeout

      public org.htmlunit.corejs.javascript.Function getOntimeout()
      Returns the event handler that fires on timeout.
      Returns:
      the event handler that fires on timeout
    • setOntimeout

      public void setOntimeout(org.htmlunit.corejs.javascript.Function timeoutHandler)
      Sets the event handler that fires on timeout.
      Parameters:
      timeoutHandler - the event handler that fires on timeout
    • getOnreadystatechange

      public org.htmlunit.corejs.javascript.Function getOnreadystatechange()
      Returns the event handler that fires on ready state change.
      Returns:
      the event handler that fires on ready state change
    • setOnreadystatechange

      public void setOnreadystatechange(org.htmlunit.corejs.javascript.Function readyStateChangeHandler)
      Sets the event handler that fires on ready state change.
      Parameters:
      readyStateChangeHandler - the event handler that fires on ready state change
    • getOnabort

      public org.htmlunit.corejs.javascript.Function getOnabort()
      Returns the event handler that fires on abort.
      Returns:
      the event handler that fires on abort
    • setOnabort

      public void setOnabort(org.htmlunit.corejs.javascript.Function abortHandler)
      Sets the event handler that fires on abort.
      Parameters:
      abortHandler - the event handler that fires on abort