System.Web.Services
[ class tree: System.Web.Services ] [ index: System.Web.Services ] [ all elements ]

Class: TService

Source Location: /Web/Services/TService.php

Class Overview


Abstract Service class.

Class Details

[line 28]
Abstract Service class.

Service providers must extend TService.




abstract:  
version:  $Revision: 1.2 $ $Date: 2005/11/06 23:02:33 $
author:  Wei Zhuo<weizhuo[at]gmail[dot]com>


[ Top ]

Methods


Child classes:

TService_AJAX
TService_AJAX class
TService_Callback
Callback service handler.
TService_PhpBeans
TService_PhpBeans class
TService_RSS
TService_RSS class

Class Methods


method execute [line 58]

void execute( )

Execute the service.



abstract:  


Overridden in child classes as:

TService_AJAX::execute()
Execute the service, let the server handle errors and exceptions.
TService_Callback::execute()
Handle the callback request.
TService_PhpBeans::execute()
TService_RSS::execute()

[ Top ]

method findClass [line 36]

string findClass( string $classpath)

Find the class name from e,g. "My.NameSpace.MyClass" and returns "MyClass".

In addition, namespace are imported.




return:  class name
access:  protected


Parameters:

string   $classpath   class path.

[ Top ]

method getClientUri [line 64]

string getClientUri( )

Return the service client URI. e.g. the URI to access the service.



return:  service URI.
abstract:  


Overridden in child classes as:

TService_AJAX::getClientUri()
Get the client-side javascript code URL.
TService_Callback::getClientUri()
Gets the client javascript source URL.

[ Top ]

method IsRequestServiceable [line 53]

boolean IsRequestServiceable( string $request)

Determine from the current URI if this service should server the request.



return:  true if able to service the request, false otherwise.
abstract:  


Overridden in child classes as:

TService_AJAX::IsRequestServiceable()
Determine if the service is applicable.
TService_Callback::IsRequestServiceable()
Callback requests are to be executed within a page.
TService_PhpBeans::IsRequestServiceable()
TService_RSS::IsRequestServiceable()

Parameters:

string   $request   service name.

[ Top ]


© 2004-2005 PRADO Software Group. All Rights Reserved.