IServiceLocator defines an interface for service locator. Its intention is to support unit testing.

Variables

timeout:Int

Sets the timeout on all services.

Methods

getHTTPService(serviceId:String):HTTPService

Return the HTTPService for the given service id.

Parameters:

serviceId

the service id.

Returns:

the RemoteObject.

getRemoteObject(serviceId:String):RemoteObject

Return the RemoteObject for the given service id.

Parameters:

serviceId

the service id.

Returns:

the RemoteObject.

logout():Void

Logs the user out of all registered services.

setCredentials(username:String, password:String):Void

Set the credentials for all registered services. Note that services that use a proxy or a third-party adapter to a remote endpoint will need to setRemoteCredentials instead.

Parameters:

username

the username to set.

password

the password to set.

setRemoteCredentials(username:String, password:String):Void

Set the remote credentials for all registered services.

Parameters:

username

the username to set.

password

the password to set.