(3)s2flex2-components NetConnectionクラス

org.seasar.flex2.net.NetConnectionクラスを読んでみます。

NetConnectionは、flash.net.NetConnectionを継承しています。


flash.net.NetConnectionについては、Adobeのリファレンスを見ると

NetConnection Inheritance EventDispatcher Inheritance Object

とあります。

S2Flex2のasDocには

NetConnectionは、flash.net.Connectionクラスに、サーバロジック呼び出し時のcallBack関数を追加したクラスです。 CallBack関数には以下のものがあります。
* AppendToGatewayUrl
* ReplaceGatewayUrl

とあります。
追加された2つのCallBack関数は、サーバーサイドを読んだときに詳しく調べることにします。

このクラスは、S2Flex2Serviceにて使用されていて、S2Flex2Serviceによって初期化したあと、call()メソッドによりサーバー通信を実現します。


次回は、【RelayResponder】を読んでみます。

引用:
Flex2リファレンス
S2Flex2リファレンス
s2flex2-componentsソース