Package org.htmlunit.javascript.host.xml
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
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_CONSTFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on abort.org.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on error.org.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on load.org.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on load end.org.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on load start.org.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on progress.org.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on ready state change.org.htmlunit.corejs.javascript.FunctionReturns the event handler that fires on timeout.voidJavaScript constructor.voidsetOnabort(org.htmlunit.corejs.javascript.Function abortHandler) Sets the event handler that fires on abort.voidsetOnerror(org.htmlunit.corejs.javascript.Function errorHandler) Sets the event handler that fires on error.voidsetOnload(org.htmlunit.corejs.javascript.Function loadHandler) Sets the event handler that fires on load.voidsetOnloadend(org.htmlunit.corejs.javascript.Function loadendHandler) Sets the event handler that fires on load end.voidsetOnloadstart(org.htmlunit.corejs.javascript.Function loadstartHandler) Sets the event handler that fires on load start.voidsetOnprogress(org.htmlunit.corejs.javascript.Function progressHandler) Sets the event handler that fires on progress.voidsetOnreadystatechange(org.htmlunit.corejs.javascript.Function readyStateChangeHandler) Sets the event handler that fires on ready state change.voidsetOntimeout(org.htmlunit.corejs.javascript.Function timeoutHandler) Sets the event handler that fires on timeout.Methods inherited from class org.htmlunit.javascript.host.event.EventTarget
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandlerMethods inherited from class org.htmlunit.javascript.HtmlUnitScriptable
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromiseMethods 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
-
Constructor Details
-
XMLHttpRequestEventTarget
public XMLHttpRequestEventTarget()Creates an instance.
-
-
Method Details
-
jsConstructor
public void jsConstructor()JavaScript constructor.- Overrides:
jsConstructorin classEventTarget
-
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
-