Packageorg.servebox.commons.utils.rpc
Classpublic class ChannelSetProvider

This class provides the application-level default AMF(Remoting) channel used for remote procedure calls.
The URI used as the message broker one is http://{host}:{port}/{context-root}/messagebroker/amf



Public Methods
 MethodDefined by
  
Creates a new ChannelSetProvider.
ChannelSetProvider
  
getAMFBrokerURI():String
Returns the AMF borker URI.
ChannelSetProvider
  
Gets the application context URI.
ChannelSetProvider
  
Returns the default channel.
ChannelSetProvider
  
getDefaultChannelSet():ChannelSet
Returns the default channel set.
ChannelSetProvider
  
getHostURI(appUrl:String = null):String
Gets the full application URI.
ChannelSetProvider
  
[static] Retruns the ChannelSetProvider instance.
ChannelSetProvider
Constructor detail
ChannelSetProvider()constructor
public function ChannelSetProvider()

Creates a new ChannelSetProvider.

Method detail
getAMFBrokerURI()method
public function getAMFBrokerURI():String

Returns the AMF borker URI.

Returns
String
getApplicationContextURI()method 
public function getApplicationContextURI():String

Gets the application context URI.

Returns
String
getDefaultChannel()method 
public function getDefaultChannel():Channel

Returns the default channel.

Returns
Channel
getDefaultChannelSet()method 
public function getDefaultChannelSet():ChannelSet

Returns the default channel set.

Returns
ChannelSet
getHostURI()method 
public function getHostURI(appUrl:String = null):String

Gets the full application URI.

Parameters
appUrl:String (default = null)

Returns
String
getInstance()method 
public static function getInstance():ChannelSetProvider

Retruns the ChannelSetProvider instance.

Returns
ChannelSetProvider