java.lang.Objecttelosys.objects.ScreenServiceXHR
XHR requester dedicated for ScreenService requests
( XMLHttpRequest wrapper class )
INTERNAL CLASS
Constructor Summary | |
ScreenServiceXHR(string url)
Creates a new XHR requester for ScreenService requests |
Method Summary | |
void |
getAsync(string sURL,
string sContent,
function callback)
Send an "GET" HTTP request to the server in asynchronous mode Not used. |
string |
getRequest()
Returns the request content (request body) as an XML string |
ScreenResponse |
getResponse()
Returns the screen action response object |
void |
getSync(string sURL,
string sContent,
function callback)
Send an "GET" HTTP request to the server in synchronous mode Not used. |
void |
postAsync(string sURL,
string sContent,
function callback)
Send an "POST" HTTP request to the server in asynchronous mode The method used by ScreenService |
void |
postSync(string sURL,
string sContent,
function callback)
Send an "POST" HTTP request to the server in synchronous mode Not used. |
void |
setTrace(boolean flag)
Set the "trace" flag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScreenServiceXHR(string url)
url
- : the default URL where to send the requestsMethod Detail |
public string getRequest()
public ScreenResponse getResponse()
public void getSync(string sURL, string sContent, function callback)
sURL
- : the URL where to send the request ( if null the default URL is used )sContent
- : the content to sendcallback
- : the callback functionpublic void getAsync(string sURL, string sContent, function callback)
sURL
- : the URL where to send the request ( if null the default URL is used )sContent
- : the content to sendcallback
- : the callback functionpublic void postSync(string sURL, string sContent, function callback)
sURL
- : the URL where to send the request ( if null the default URL is used )sContent
- : the content to sendcallback
- : the callback functionpublic void postAsync(string sURL, string sContent, function callback)
sURL
- : the URL where to send the request ( if null the default URL is used )sContent
- : the content to sendcallback
- : the callback functionpublic void setTrace(boolean flag)
flag
-