telosys.objects
Class ScreenService

java.lang.Object
  extended bytelosys.objects.ScreenService

public class ScreenService
extends java.lang.Object

Service stub to invoke the server side services with AJAX


Constructor Summary
protected ScreenService(string serviceName, string rootUrl, function responseProcessor)
          Constructor ( for internal use only ) To get a service use a service provider
 
Method Summary
 void call()
          Call the service without parameter in the URL Use an AJAX asynchronous POST
 void callWithParams(object params)
          Call the service with parameters in the URL query string
Use an AJAX asynchronous POST
 void doGet()
          Call the service with a "GET" action parameter ( "action=get" in the URL query string ) to retrieve the previous result
Use an AJAX asynchronous POST
 string getName()
          Returns the service name
 string getURL()
          Returns the URL associated with the service
 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

ScreenService

protected ScreenService(string serviceName,
                        string rootUrl,
                        function responseProcessor)
Constructor ( for internal use only ) To get a service use a service provider

Parameters:
serviceName - : the name of the service
rootUrl - : the root URL to use to build the service URL ( rootURL + serviceName + ".svc" )
responseProcessor -
Method Detail

getURL

public string getURL()
Returns the URL associated with the service

Returns:
the URL

getName

public string getName()
Returns the service name

Returns:
the service name

call

public void call()
Call the service without parameter in the URL Use an AJAX asynchronous POST


callWithParams

public void callWithParams(object params)
Call the service with parameters in the URL query string
Use an AJAX asynchronous POST

Parameters:
params - the object with all the parameters ( each attribute is a parameter )

doGet

public void doGet()
Call the service with a "GET" action parameter ( "action=get" in the URL query string ) to retrieve the previous result
Use an AJAX asynchronous POST


setTrace

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

Parameters:
flag -