Class WSGateway

Description

This is a Gateway class to the WebService. All the web services requests will be sent through Gateway class.

Located in /models/WSGateway.php (line 17)

RetryCode
   |
   --WSGateway
Method Summary
WSResponse execute (WSrequest $arguments)
WSResponse send (string $type, WSRequest $wsRequest)
Methods
static method getInstance (line 28)

factory method to return the singleton instance

  • access: public
static WSGateway getInstance ()
execute (line 67)

This method will contain the code that would be executed using the retry logic.

  • access: public
WSResponse execute (WSrequest $arguments)
  • WSrequest $arguments

Redefinition of:
RetryCode::execute()
Execute method will be implemened by class that's inherit RetryCode and add retry logic.
finalizeINSTANCE (line 77)

Destroy instance of WSGateway class if not needed.

  • access: public
void finalizeINSTANCE ()
send (line 54)

Send Request to SpexliveService through SpexLiveServiceClient. Call service with retry. Retry is useful because sometimes the connection will fail for some reason but will succeed when retried again.

  • access: public
WSResponse send (string $type, WSRequest $wsRequest)
  • WSRequest $wsRequest
  • string $type: RequestType

Inherited Methods

Inherited From RetryCode

RetryCode::execute()
RetryCode::run()

Documentation generated on Wed, 13 Feb 2008 01:57:45 +0500 by phpDocumentor 1.4.0a2