telosys.objects
Class ScreenActionsXHR

java.lang.Object
  extended bytelosys.objects.ScreenActionsXHR

class ScreenActionsXHR
extends java.lang.Object

XHR requester dedicated for ScreenActions requests ( XMLHttpRequest wrapper class )
INTERNAL CLASS


Constructor Summary
ScreenActionsXHR(string url)
          Creates a new XHR requester for ScreenActions requests
 
Method Summary
 string getRequest()
          Returns the request content (request body) as an XML string
 ScreenResponse getResponse()
          Returns the screen action response object
 void postAsync(string sContent, function callback)
          Send an "POST" HTTP request to the server in asynchronous mode
 void postAsync(string sContent, function callback, string sUrl)
           
 void postSync(string sContent)
          Send an "POST" HTTP request to the server in synchronous mode
 void postSync(string sContent, string sUrl)
          Send an "POST" HTTP request to the server in synchronous mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenActionsXHR

public ScreenActionsXHR(string url)
Creates a new XHR requester for ScreenActions 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:

postSync

public void postSync(string sContent)
Send an "POST" HTTP request to the server in synchronous mode

Parameters:
sContent -

postSync

public void postSync(string sContent,
                     string sUrl)
Send an "POST" HTTP request to the server in synchronous mode

Parameters:
sContent -
sUrl - : the URL where to send the request

postAsync

public void postAsync(string sContent,
                      function callback)
Send an "POST" HTTP request to the server in asynchronous mode

Parameters:
sContent -
callback - : the callback function ( cannot be null )

postAsync

public void postAsync(string sContent,
                      function callback,
                      string sUrl)
Parameters:
sContent -
callback - : the callback function ( cannot be null )
sUrl -