home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 136 / MOBICLIC136.ISO / pc / DATA / HOTE / libs / amfphp / amfphp.swf / scripts / __Packages / mx / remoting / Connection.as < prev    next >
Text File  |  2011-07-20  |  2KB  |  74 lines

  1. class mx.remoting.Connection extends NetConnection
  2. {
  3.    static var version = "1.2.0.124";
  4.    function Connection()
  5.    {
  6.       super();
  7.    }
  8.    function getService(serviceName, client)
  9.    {
  10.       var _loc1_ = new mx.remoting.NetServiceProxy(this,serviceName,client);
  11.       return _loc1_;
  12.    }
  13.    function setCredentials(userId, password)
  14.    {
  15.       this.addHeader("Credentials",false,{userid:userId,password:password});
  16.    }
  17.    function clone()
  18.    {
  19.       var _loc1_ = new mx.remoting.Connection();
  20.       _loc1_.connect(this.uri);
  21.       return _loc1_;
  22.    }
  23.    function getDebugId()
  24.    {
  25.       return null;
  26.    }
  27.    function getDebugConfig()
  28.    {
  29.       return null;
  30.    }
  31.    function setDebugId(id)
  32.    {
  33.    }
  34.    function call()
  35.    {
  36.       super.call.apply(super,arguments);
  37.    }
  38.    function close()
  39.    {
  40.       super.close();
  41.    }
  42.    function connect(url)
  43.    {
  44.       return super.connect(url);
  45.    }
  46.    function addHeader(name, mustUnderstand, obj)
  47.    {
  48.       super.addHeader(name,mustUnderstand,obj);
  49.    }
  50.    function trace(traceObj)
  51.    {
  52.    }
  53.    function AppendToGatewayUrl(urlSuffix)
  54.    {
  55.       var _loc1_ = this;
  56.       _loc1_.__urlSuffix = urlSuffix;
  57.       if(_loc1_.__originalUrl == null)
  58.       {
  59.          _loc1_.__originalUrl = _loc1_.uri;
  60.       }
  61.       var _loc2_ = _loc1_.__originalUrl + urlSuffix;
  62.       _loc1_.connect(_loc2_);
  63.    }
  64.    function ReplaceGatewayUrl(newUrl)
  65.    {
  66.       this.connect(newUrl);
  67.    }
  68.    function RequestPersistentHeader(info)
  69.    {
  70.       var _loc1_ = info;
  71.       this.addHeader(_loc1_.name,_loc1_.mustUnderstand,_loc1_.data);
  72.    }
  73. }
  74.