Interface XMLHttpRequest

All Superinterfaces:
EventTarget, XMLHttpRequestEventTarget
All Known Implementing Classes:
XMLHttpRequestImpl

public interface XMLHttpRequest extends XMLHttpRequestEventTarget
  • Method Details

    • getOnreadystatechange

      Function getOnreadystatechange()
    • setOnreadystatechange

      void setOnreadystatechange(Function onreadystatechange)
    • getReadyState

      int getReadyState()
    • open

      void open(String method, String url) throws Exception

      open.

      Parameters:
      method - a String object.
      url - a String object.
      Throws:
      Exception - if any.
    • open

      void open(String method, String url, boolean async) throws Exception

      open.

      Parameters:
      method - a String object.
      url - a String object.
      async - a boolean.
      Throws:
      Exception - if any.
    • open

      void open(String method, String url, boolean async, String username) throws Exception

      open.

      Parameters:
      method - a String object.
      url - a String object.
      async - a boolean.
      username - a String object.
      Throws:
      Exception - if any.
    • open

      void open(String method, String url, boolean async, String username, String password) throws Exception

      open.

      Parameters:
      method - a String object.
      url - a String object.
      async - a boolean.
      username - a String object.
      password - a String object.
      Throws:
      Exception - if any.
    • send

      void send() throws Exception

      send.

      Throws:
      Exception - if any.
    • abort

      void abort()

      abort.

    • send

      void send(Object data) throws Exception

      send.

      Parameters:
      data - a Object object.
      Throws:
      Exception - if any.
    • setRequestHeader

      void setRequestHeader(String header, String value)
    • getTimeout

      int getTimeout()
    • setTimeout

      void setTimeout(int timeout)
    • getWithCredentials

      boolean getWithCredentials()
    • setWithCredentials

      void setWithCredentials(boolean withCredentials)
    • getUpload

    • getStatus

      int getStatus()
    • getStatusText

      String getStatusText()
    • getResponseHeader

      List<String> getResponseHeader(String header)
    • getAllResponseHeaders

      String getAllResponseHeaders()
    • overrideMimeType

      void overrideMimeType(String mime)
    • getResponseType

      String getResponseType()
    • setResponseType

      void setResponseType(String responseType)
    • getResponse

      Object getResponse()
    • getResponseText

      String getResponseText()
    • getResponseXML

      Document getResponseXML()