Class XMLHttpRequestExchange

  • All Implemented Interfaces:
    java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable

    public class XMLHttpRequestExchange
    extends org.mozilla.javascript.ScriptableObject
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.mozilla.javascript.ScriptableObject

        CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
      • Fields inherited from interface org.mozilla.javascript.Scriptable

        NOT_FOUND
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void await()  
      java.lang.String getClassName()  
      boolean isAsynchronous()  
      void jsConstructor​(java.lang.Object client, java.lang.Object threadModel, org.mozilla.javascript.Scriptable thiz, java.lang.String method, java.lang.String url, boolean async)  
      void jsFunction_abort()  
      void jsFunction_addRequestHeader​(java.lang.String name, java.lang.String value)  
      java.lang.String jsFunction_getAllResponseHeaders()  
      java.lang.String jsFunction_getResponseHeader​(java.lang.String name)  
      void jsFunction_send()  
      void jsFunction_setRequestContent​(java.lang.String data)  
      java.lang.String jsGet_method()  
      int jsGet_readyState()  
      int jsGet_responseStatus()  
      java.lang.String jsGet_responseStatusText()  
      java.lang.String jsGet_responseText()  
      • Methods inherited from class org.mozilla.javascript.ScriptableObject

        applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLHttpRequestExchange

        public XMLHttpRequestExchange()
    • Method Detail

      • jsConstructor

        public void jsConstructor​(java.lang.Object client,
                                  java.lang.Object threadModel,
                                  org.mozilla.javascript.Scriptable thiz,
                                  java.lang.String method,
                                  java.lang.String url,
                                  boolean async)
      • getClassName

        public java.lang.String getClassName()
        Specified by:
        getClassName in interface org.mozilla.javascript.Scriptable
        Specified by:
        getClassName in class org.mozilla.javascript.ScriptableObject
      • isAsynchronous

        public boolean isAsynchronous()
      • await

        public void await()
                   throws java.lang.InterruptedException,
                          java.util.concurrent.ExecutionException,
                          java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • jsFunction_addRequestHeader

        public void jsFunction_addRequestHeader​(java.lang.String name,
                                                java.lang.String value)
      • jsGet_method

        public java.lang.String jsGet_method()
      • jsFunction_setRequestContent

        public void jsFunction_setRequestContent​(java.lang.String data)
                                          throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • jsGet_readyState

        public int jsGet_readyState()
      • jsGet_responseText

        public java.lang.String jsGet_responseText()
      • jsGet_responseStatus

        public int jsGet_responseStatus()
      • jsGet_responseStatusText

        public java.lang.String jsGet_responseStatusText()
      • jsFunction_abort

        public void jsFunction_abort()
      • jsFunction_getAllResponseHeaders

        public java.lang.String jsFunction_getAllResponseHeaders()
      • jsFunction_getResponseHeader

        public java.lang.String jsFunction_getResponseHeader​(java.lang.String name)
      • jsFunction_send

        public void jsFunction_send()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception