org.lobobrowser.html.js

Class XMLHttpRequest

Implemented Interfaces:
ScriptableDelegate

public class XMLHttpRequest
extends AbstractScriptableDelegate

Constructor Summary

XMLHttpRequest(UserAgentContext pcontext, java.net.URL codeSource, Scriptable scope)

Method Summary

void
abort()
String
getAllResponseHeaders()
Function
getOnreadystatechange()
int
getReadyState()
byte[]
getResponseBytes()
String
getResponseHeader(String headerName)
String
getResponseText()
Document
getResponseXML()
int
getStatus()
String
getStatusText()
void
open(String method, String url)
void
open(String method, String url, boolean asyncFlag)
void
open(String method, String url, boolean asyncFlag, String userName)
void
open(String method, String url, boolean asyncFlag, String userName, String password)
void
send(String content)
void
setOnreadystatechange(Function value)

Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate

getScriptable, setScriptable

Constructor Details

XMLHttpRequest

public XMLHttpRequest(UserAgentContext pcontext,
                      java.net.URL codeSource,
                      Scriptable scope)

Method Details

abort

public void abort()

getAllResponseHeaders

public String getAllResponseHeaders()

getOnreadystatechange

public Function getOnreadystatechange()

getReadyState

public int getReadyState()

getResponseBytes

public byte[] getResponseBytes()

getResponseHeader

public String getResponseHeader(String headerName)

getResponseText

public String getResponseText()

getResponseXML

public Document getResponseXML()

getStatus

public int getStatus()

getStatusText

public String getStatusText()

open

public void open(String method,
                 String url)
            throws java.io.IOException

open

public void open(String method,
                 String url,
                 boolean asyncFlag)
            throws java.io.IOException

open

public void open(String method,
                 String url,
                 boolean asyncFlag,
                 String userName)
            throws java.io.IOException

open

public void open(String method,
                 String url,
                 boolean asyncFlag,
                 String userName,
                 String password)
            throws java.io.IOException

send

public void send(String content)
            throws java.io.IOException

setOnreadystatechange

public void setOnreadystatechange(Function value)