API documentation  2.0rc1
Public Member Functions | List of all members
client::XMLHttpRequest Class Reference

#include <clientlib.h>

Inherits client::EventTarget, and client::XMLHttpRequestEventTarget.

Public Member Functions

Stringget_msCaching ()
 
void set_msCaching (const String &)
 
EventListenerget_onreadystatechange ()
 
void set_onreadystatechange (EventListener *)
 
double get_readyState ()
 
Objectget_response ()
 
Stringget_responseText ()
 
Stringget_responseType ()
 
void set_responseType (const String &)
 
Stringget_responseURL ()
 
Documentget_responseXML ()
 
double get_status ()
 
Stringget_statusText ()
 
double get_timeout ()
 
void set_timeout (double)
 
XMLHttpRequestUploadget_upload ()
 
bool get_withCredentials ()
 
void set_withCredentials (bool)
 
void abort ()
 
StringgetAllResponseHeaders ()
 
StringgetResponseHeader (const String &header)
 
bool msCachingEnabled ()
 
void open (const String &method, const String &url)
 
void open (const String &method, const String &url, bool async)
 
void open (const String &method, const String &url, bool async, const String &user)
 
void open (const String &method, const String &url, bool async, const String &user, const String &password)
 
void overrideMimeType (const String &mime)
 
void send ()
 
void send (Object *data)
 
void setRequestHeader (const String &header, const String &value)
 
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, EventListenerOptions *options)
 
XMLHttpRequestget_prototype ()
 
void set_prototype (XMLHttpRequest *)
 
 XMLHttpRequest ()
 
double get_DONE ()
 
double get_HEADERS_RECEIVED ()
 
double get_LOADING ()
 
double get_OPENED ()
 
double get_UNSENT ()
 
- Public Member Functions inherited from client::EventTarget
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
bool dispatchEvent (Event *evt)
 
void removeEventListener (const String &type)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, bool options)
 
EventTargetget_prototype ()
 
void set_prototype (EventTarget *)
 
 EventTarget ()
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
bool hasOwnProperty (const client::String &name)
 
- Public Member Functions inherited from client::XMLHttpRequestEventTarget
EventListenerget_onabort ()
 
void set_onabort (EventListener *)
 
EventListenerget_onerror ()
 
void set_onerror (EventListener *)
 
EventListenerget_onload ()
 
void set_onload (EventListener *)
 
EventListenerget_onloadend ()
 
void set_onloadend (EventListener *)
 
EventListenerget_onloadstart ()
 
void set_onloadstart (EventListener *)
 
EventListenerget_onprogress ()
 
void set_onprogress (EventListener *)
 
EventListenerget_ontimeout ()
 
void set_ontimeout (EventListener *)
 
void addEventListener (const String &type, EventListener *listener)
 
void addEventListener (const String &type, EventListener *listener, bool options)
 
void addEventListener (const String &type, EventListener *listener, AddEventListenerOptions *options)
 
void addEventListener (const String &type, EventListenerObject *listener)
 
void addEventListener (const String &type, EventListenerObject *listener, AddEventListenerOptions *options)
 
void removeEventListener (const String &type, EventListener *listener)
 
void removeEventListener (const String &type, EventListener *listener, bool options)
 
void removeEventListener (const String &type, EventListener *listener, EventListenerOptions *options)
 
void removeEventListener (const String &type, EventListenerObject *listener)
 
void removeEventListener (const String &type, EventListenerObject *listener, EventListenerOptions *options)
 

Constructor & Destructor Documentation

◆ XMLHttpRequest()

client::XMLHttpRequest::XMLHttpRequest ( )

Member Function Documentation

◆ abort()

void client::XMLHttpRequest::abort ( )

◆ addEventListener() [1/5]

void client::XMLHttpRequest::addEventListener ( const String type,
EventListener listener 
)

◆ addEventListener() [2/5]

void client::XMLHttpRequest::addEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ addEventListener() [3/5]

void client::XMLHttpRequest::addEventListener ( const String type,
EventListener listener,
AddEventListenerOptions options 
)

◆ addEventListener() [4/5]

void client::XMLHttpRequest::addEventListener ( const String type,
EventListenerObject listener 
)

◆ addEventListener() [5/5]

void client::XMLHttpRequest::addEventListener ( const String type,
EventListenerObject listener,
AddEventListenerOptions options 
)

◆ get_DONE()

double client::XMLHttpRequest::get_DONE ( )

◆ get_HEADERS_RECEIVED()

double client::XMLHttpRequest::get_HEADERS_RECEIVED ( )

◆ get_LOADING()

double client::XMLHttpRequest::get_LOADING ( )

◆ get_msCaching()

String* client::XMLHttpRequest::get_msCaching ( )

◆ get_onreadystatechange()

EventListener* client::XMLHttpRequest::get_onreadystatechange ( )

◆ get_OPENED()

double client::XMLHttpRequest::get_OPENED ( )

◆ get_prototype()

XMLHttpRequest* client::XMLHttpRequest::get_prototype ( )

◆ get_readyState()

double client::XMLHttpRequest::get_readyState ( )

◆ get_response()

Object* client::XMLHttpRequest::get_response ( )

◆ get_responseText()

String* client::XMLHttpRequest::get_responseText ( )

◆ get_responseType()

String* client::XMLHttpRequest::get_responseType ( )

◆ get_responseURL()

String* client::XMLHttpRequest::get_responseURL ( )

◆ get_responseXML()

Document* client::XMLHttpRequest::get_responseXML ( )

◆ get_status()

double client::XMLHttpRequest::get_status ( )

◆ get_statusText()

String* client::XMLHttpRequest::get_statusText ( )

◆ get_timeout()

double client::XMLHttpRequest::get_timeout ( )

◆ get_UNSENT()

double client::XMLHttpRequest::get_UNSENT ( )

◆ get_upload()

XMLHttpRequestUpload* client::XMLHttpRequest::get_upload ( )

◆ get_withCredentials()

bool client::XMLHttpRequest::get_withCredentials ( )

◆ getAllResponseHeaders()

String* client::XMLHttpRequest::getAllResponseHeaders ( )

◆ getResponseHeader()

String* client::XMLHttpRequest::getResponseHeader ( const String header)

◆ msCachingEnabled()

bool client::XMLHttpRequest::msCachingEnabled ( )

◆ open() [1/4]

void client::XMLHttpRequest::open ( const String method,
const String url 
)

◆ open() [2/4]

void client::XMLHttpRequest::open ( const String method,
const String url,
bool  async 
)

◆ open() [3/4]

void client::XMLHttpRequest::open ( const String method,
const String url,
bool  async,
const String user 
)

◆ open() [4/4]

void client::XMLHttpRequest::open ( const String method,
const String url,
bool  async,
const String user,
const String password 
)

◆ overrideMimeType()

void client::XMLHttpRequest::overrideMimeType ( const String mime)

◆ removeEventListener() [1/5]

void client::XMLHttpRequest::removeEventListener ( const String type,
EventListener listener 
)

◆ removeEventListener() [2/5]

void client::XMLHttpRequest::removeEventListener ( const String type,
EventListener listener,
bool  options 
)

◆ removeEventListener() [3/5]

void client::XMLHttpRequest::removeEventListener ( const String type,
EventListener listener,
EventListenerOptions options 
)

◆ removeEventListener() [4/5]

void client::XMLHttpRequest::removeEventListener ( const String type,
EventListenerObject listener 
)

◆ removeEventListener() [5/5]

void client::XMLHttpRequest::removeEventListener ( const String type,
EventListenerObject listener,
EventListenerOptions options 
)

◆ send() [1/2]

void client::XMLHttpRequest::send ( )

◆ send() [2/2]

void client::XMLHttpRequest::send ( Object data)

◆ set_msCaching()

void client::XMLHttpRequest::set_msCaching ( const String )

◆ set_onreadystatechange()

void client::XMLHttpRequest::set_onreadystatechange ( EventListener )

◆ set_prototype()

void client::XMLHttpRequest::set_prototype ( XMLHttpRequest )

◆ set_responseType()

void client::XMLHttpRequest::set_responseType ( const String )

◆ set_timeout()

void client::XMLHttpRequest::set_timeout ( double  )

◆ set_withCredentials()

void client::XMLHttpRequest::set_withCredentials ( bool  )

◆ setRequestHeader()

void client::XMLHttpRequest::setRequestHeader ( const String header,
const String value 
)