套件 | mx.messaging.config |
類別 | public class ServerConfig |
繼承 | ServerConfig Object |
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The XML source is provided during the compilation process. However, there is currently no internal restriction preventing the acquisition of this XML data by other means, such as network, local file system, or shared object at runtime.
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
xml : XML [靜態]
The XML configuration; this value must contain the relevant portions of
the <services> tag from the services-config.xml file. | ServerConfig |
方法 | 定義自 | ||
---|---|---|---|
[靜態]
This method ensures that the destinations specified contain identical
channel definitions. | ServerConfig | ||
[靜態]
Returns a shared instance of the configured Channel. | ServerConfig | ||
[靜態]
Returns a shared ChannelSet for use with the specified destination
belonging to the service that handles the specified message type. | ServerConfig | ||
[靜態]
Returns the property information for the specified destination
| ServerConfig | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
xml | 屬性 |
xml:XML
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The XML configuration; this value must contain the relevant portions of the <services> tag from the services-config.xml file.
實作
public static function get xml():XML
public static function set xml(value:XML):void
checkChannelConsistency | () | 方法 |
public static function checkChannelConsistency(destinationA:String, destinationB:String):void
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
This method ensures that the destinations specified contain identical channel definitions. If the channel definitions between the two destinations specified are not identical this method will throw an ArgumentError.
參數
destinationA:String — first destination to compare against
| |
destinationB:String — second destination to compare channels with
|
getChannel | () | 方法 |
public static function getChannel(id:String, clustered:Boolean = false):Channel
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns a shared instance of the configured Channel.
參數
id:String — The id of the desired Channel.
| |
clustered:Boolean (default = false ) — True if the Channel will be used in a clustered
fashion; otherwise false.
|
Channel — The Channel instance.
|
擲回值
InvalidChannelError — If no Channel has the specified id.
|
getChannelSet | () | 方法 |
public static function getChannelSet(destinationId:String):ChannelSet
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns a shared ChannelSet for use with the specified destination belonging to the service that handles the specified message type.
參數
destinationId:String — The target destination id.
|
ChannelSet — The ChannelSet.
|
擲回值
InvalidDestinationError — If the specified destination
does not have channels and the application
did not define default channels.
|
getProperties | () | 方法 |
public static function getProperties(destinationId:String):XMLList
語言版本: | ActionScript 3.0 |
產品版本: | BlazeDS 4, Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the property information for the specified destination
參數
destinationId:String — The id of the desired destination.
|
XMLList — XMLList containing the <property> tag information.
|
擲回值
InvalidDestinationError — If the specified destination is not found.
|
Tue Jun 12 2018, 03:47 PM Z