telosys.objects
Class ScreenServiceXHR

java.lang.Object
  extended bytelosys.objects.ScreenServiceXHR

class ScreenServiceXHR
extends java.lang.Object

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

ScreenServiceXHR

public ScreenServiceXHR(string url)
Creates a new XHR requester for ScreenService requests

Parameters:
url - : the default URL where to send the requests
Method Detail

getRequest

public string getRequest()
Returns the request content (request body) as an XML string

Returns:

getResponse

public ScreenResponse getResponse()
Returns the screen action response object

Returns:

getSync

public void getSync(string sURL,
                    string sContent,
                    function callback)
Send an "GET" HTTP request to the server in synchronous mode
Not used.

Parameters:
sURL - : the URL where to send the request ( if null the default URL is used )
sContent - : the content to send
callback - : the callback function

getAsync

public void getAsync(string sURL,
                     string sContent,
                     function callback)
Send an "GET" HTTP request to the server in asynchronous mode
Not used.

Parameters:
sURL - : the URL where to send the request ( if null the default URL is used )
sContent - : the content to send
callback - : the callback function

postSync

public void postSync(string sURL,
                     string sContent,
                     function callback)
Send an "POST" HTTP request to the server in synchronous mode
Not used.

Parameters:
sURL - : the URL where to send the request ( if null the default URL is used )
sContent - : the content to send
callback - : the callback function

postAsync

public void postAsync(string sURL,
                      string sContent,
                      function callback)
Send an "POST" HTTP request to the server in asynchronous mode
The method used by ScreenService

Parameters:
sURL - : the URL where to send the request ( if null the default URL is used )
sContent - : the content to send
callback - : the callback function

setTrace

public void setTrace(boolean flag)
Set the "trace" flag

Parameters:
flag -