Main Page | Packages | Class Tree | Index | Help

xp.services

class ServiceRequest

Object
  |
  +--xp.services.ParamsBuilder
        |
        +--xp.services.ServiceRequest

Implemented Interfaces: IResponder

class ServiceRequest
extends ParamsBuilder

A ServiceRequest is a combinationof a Command, Params and a Response.

extends ParamsBuilder, implements ICommand and IResponder. A Command executed via a Service


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

static
_dp


public
pendingCall


public
requestName: String
the request name*

public
view: Object
The contex object interface*

public
xmlService: IService
the service object*

Fields inherited from class xp.services.ParamsBuilder

name

Property Summary

public
results: XMLNode (read-only)
get the results object

Constructor

public
ServiceRequest ( requestName: String, serviceName: String)
Create a ServiceRequest instance

Method Summary

public
execute ( context: Object ): Void
ICommand interface Execute the command

public
onFault ( e: FaultEvent ): Void
The IResponder Interface Callback for the onFault event

public
onProgress ( e: ProgressEvent ): Void
The IResponder Interface Callback for the onProgress event

public
onResult ( e: ResultEvent ): Void
The IResponder Interface Callback for the onResult event

public
setContext ( view: Object, onResult: Function, onFault: Function, message: String, title: String, waitType: String )
Sets the execution context

public
showWait ( )
Show the wait dialog

Methods inherited from class xp.services.ParamsBuilder

addAttribute, addParam, addXMLParam, bindCallParams, clearAll, getCallParams, isBound



Field Documentation

_dp

static var _dp

pendingCall

public var pendingCall

requestName

public var requestName: String
the request name*

view

public var view: Object
The contex object interface*

xmlService

public var xmlService: IService
the service object*


Property Documentation

results

public results: XMLNode (read-only)
get the results object


Constructor Documentation

ServiceRequest

public function ServiceRequest(requestName: String,
 serviceName: String)
Create a ServiceRequest instance

Parameters:
requestName
requstName Th ename of the request
serviceName
the name of the service this command will use

Method Documentation

execute

public function execute(context: Object): Void
ICommand interface Execute the command

Parameters:
context
the execution context

onFault

public function onFault(e: FaultEvent): Void
The IResponder Interface Callback for the onFault event

Specified by:
onFault in interface IResponder

Parameters:
e
the event object

onProgress

public function onProgress(e: ProgressEvent): Void
The IResponder Interface Callback for the onProgress event

Specified by:
onProgress in interface IResponder

Parameters:
e
the event object

onResult

public function onResult(e: ResultEvent): Void
The IResponder Interface Callback for the onResult event

Specified by:
onResult in interface IResponder

Parameters:
e
the event object

setContext

public function setContext(view: Object,
 onResult: Function,
 onFault: Function,
 message: String,
 title: String,
 waitType: String)
Sets the execution context

Parameters:
view
onResult
onFault
message
message to display in the wait dialog
title
Title of the wait dialog
waitType
Typeof dialog to display whilst his command is executing

showWait

public function showWait()
Show the wait dialog


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc