This page was saved using jaction on 2006-09-04 8:34:03.
Address: http://flexdocs.kr/docs/flex2/langref/mx/messaging/config/ServerConfig.html
Title: mx.messaging.config.ServerConfig (Flex™ 2 레퍼런스 가이드)  •  Size: 28770
(Flex Data Services 전용)
Packagemx.messaging.config
Classpublic class ServerConfig
InheritanceServerConfig Inheritance Object

이 클래스는, 서버의 메시징 설정 정보에의 액세스를 제공합니다. 이 클래스는 클라이언트의 "services-config.xml" 파일로부터의 정보를 캡슐화합니다. 이 클래스는, 메시징 시스템이 설정 끝난 ChannelSets 및 Channels 를 메시징 체제에 제공할 때에 사용됩니다.

컴파일시에는 XML 소스가 제공됩니다. 다만 현재, 네트워크, 로컬 파일 시스템, 실행시의 공유 object등이라고 하는 다른 방법에 따르는 이 XML 데이터의 취득을 방지하는 내부 제약은 없습니다.



Public property
 property정의
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
  xml : XML
[static] XML 의 설정입니다. 이 값에는, services-config.xml 파일내의 <services> 태그 가운데, 해당하는 부분이 포함되어 있을 필요가 있습니다.
ServerConfig
Public Methods
 Methods정의
  getChannel (id:String , clustered:Boolean = false):Channel
[static] 설정된 채널의 공유 인스턴스를 돌려줍니다.
ServerConfig
  getChannelSet (destinationId:String , message:IMessage , serverMessageType:String = null):ChannelSet
[static] 특정의 메세지 타입을 처리하는 서비스에 소속하는 특정의 행선지에 사용하는 공유 ChannelSet 를 돌려줍니다.
ServerConfig
  getProperties (destinationId:String , serviceId:String = null):XMLList
[static] 지정된 행선지의 property 정보를 돌려줍니다.
ServerConfig
  getServiceIdForMessage (message:IMessage ):String
[static] 지정한 메세지를 처리하는 서비스를 검색해, 최초로 발견된 서비스의 ID 를 돌려줍니다.
ServerConfig
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
 InheritedtoString ():String
지정된 object의 string 표현을 돌려줍니다.
Object
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
property의 상세
xmlproperty
xml:XML   [read-write]

XML 의 설정입니다. 이 값에는, services-config.xml 파일내의 <services> 태그 가운데, 해당하는 부분이 포함되어 있을 필요가 있습니다.

Implements
    public static function get xml():XML
    public function set xml(value:XML ):void
Methods의 상세
getChannel()Methods
public static function getChannel(id:String , clustered:Boolean = false):Channel

설정된 채널의 공유 인스턴스를 돌려줍니다.

Parameters
id:String — 목적의 채널의 ID 입니다.
 
clustered:Boolean (default = false) — 채널이 클러스터화 되어 사용되는 경우는 true, 그렇지 않은 경우는 false.

반환값
Channel — 채널 인스턴스입니다.

Throws
InvalidChannelError — 지정된 ID 를 가지는 채널이 없는 경우.
getChannelSet()Methods 
public static function getChannelSet(destinationId:String , message:IMessage , serverMessageType:String = null):ChannelSet

특정의 메세지 타입을 처리하는 서비스에 소속하는 특정의 행선지에 사용하는 공유 ChannelSet 를 돌려줍니다.

이 메세지 타입을 처리하는 복수의 서비스에 동일한 행선지가 정의되고 있는 경우는, 최초로 일치한 것이 사용되어 그 외는 무시됩니다.

Parameters
destinationId:String — 타겟 행선지의 ID 입니다.
 
message:IMessage — 송신하는 메세지입니다. 각 서비스는 메세지 타입에 관련지을 수 있고 있기 (위해)때문에, 다른 서비스에 속하는 동일한 이름의 행선지는 메세지에 의해 구별할 수 있습니다.
 
serverMessageType:String (default = null) — 이 값 (지정되고 있는 경우)은, 메세지 인수가 등록되어 있는 서버 클래스 앨리어스(alias)를 사용하는 일 없이, 다른 서비스에 속하는 동일한 이름의 행선지를 구별하기 위해서 사용됩니다. 이 인수가 제공되는 경우, 메세지 인수는 사용되지 않기 때문에 null 로서 건네줄 수가 있습니다.

반환값
ChannelSet — ChannelSet 입니다.

Throws
InvalidDestinationError — 지정의 행선지가, 정의되어 있지 않은가 이 타입의 메세지는 취급하지 않는 경우.
getProperties()Methods 
public static function getProperties(destinationId:String , serviceId:String = null):XMLList

지정된 행선지의 property 정보를 돌려줍니다.

Parameters
destinationId:String — 목적의 행선지의 ID 입니다.
 
serviceId:String (default = null) — 행선지가 속하고 있는 서비스의 ID 입니다.

반환값
XMLList — <property> 태그 정보를 포함한 XMLList.

Throws
InvalidDestinationError — 지정된 행선지가 발견되지 않는 경우.
getServiceIdForMessage()Methods 
public static function getServiceIdForMessage(message:IMessage ):String

지정한 메세지를 처리하는 서비스를 검색해, 최초로 발견된 서비스의 ID 를 돌려줍니다.

Parameters
message:IMessage — 이 메세지에 대응하는 서비스를 검색합니다.

반환값
String — 서비스의 ID 입니다.

Throws
MessagingError — 메세지를 처리하는 서비스가 발견되지 않는 경우.






 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/messaging/config/ServerConfig.html