public class AJAX extends JSBaseScriptableObject
myLogger
Constructor and Description |
---|
AJAX() |
Modifier and Type | Method and Description |
---|---|
void |
jsConstructor(java.lang.String theUrl,
java.lang.Object theObject)
Javascript constructor for AJAX object.
|
boolean |
jsFunction_addBinaryChunk(IFileObject theFile,
int theChunkIndex,
int theChunkSize,
java.lang.String theParamKey)
Called before execute, this function adds the binary chunk to a multipart POST request
|
void |
jsFunction_execute()
Execute the configured AJAX request.
|
java.lang.String |
jsFunction_printRequest()
Builds a string form of the Request based on the object passed to the constructor
|
void |
jsFunction_setRequestTimeout(int theRequestTimeoutInSeconds)
Set the request timeout in seconds
(default timeout is 15 seconds)
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void jsConstructor(java.lang.String theUrl, java.lang.Object theObject)
theUrl
- Target urltheObject
- Javascript object of parameters, modeled after jQuery.ajax.public void jsFunction_setRequestTimeout(int theRequestTimeoutInSeconds)
theRequestTimeoutInSeconds
- public void jsFunction_execute()
public java.lang.String jsFunction_printRequest()
public boolean jsFunction_addBinaryChunk(IFileObject theFile, int theChunkIndex, int theChunkSize, java.lang.String theParamKey) throws java.lang.Exception
theFile
- the file to chunktheChunkIndex
- the index of the chunk starting at 0theChunkSize
- the size of the chunk to sendtheParamKey
- the Key to associate with the chunk in the requestjava.lang.Exception
Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.