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 >
Wrap
Text File
|
2011-07-20
|
2KB
|
74 lines
class mx.remoting.Connection extends NetConnection
{
static var version = "1.2.0.124";
function Connection()
{
super();
}
function getService(serviceName, client)
{
var _loc1_ = new mx.remoting.NetServiceProxy(this,serviceName,client);
return _loc1_;
}
function setCredentials(userId, password)
{
this.addHeader("Credentials",false,{userid:userId,password:password});
}
function clone()
{
var _loc1_ = new mx.remoting.Connection();
_loc1_.connect(this.uri);
return _loc1_;
}
function getDebugId()
{
return null;
}
function getDebugConfig()
{
return null;
}
function setDebugId(id)
{
}
function call()
{
super.call.apply(super,arguments);
}
function close()
{
super.close();
}
function connect(url)
{
return super.connect(url);
}
function addHeader(name, mustUnderstand, obj)
{
super.addHeader(name,mustUnderstand,obj);
}
function trace(traceObj)
{
}
function AppendToGatewayUrl(urlSuffix)
{
var _loc1_ = this;
_loc1_.__urlSuffix = urlSuffix;
if(_loc1_.__originalUrl == null)
{
_loc1_.__originalUrl = _loc1_.uri;
}
var _loc2_ = _loc1_.__originalUrl + urlSuffix;
_loc1_.connect(_loc2_);
}
function ReplaceGatewayUrl(newUrl)
{
this.connect(newUrl);
}
function RequestPersistentHeader(info)
{
var _loc1_ = info;
this.addHeader(_loc1_.name,_loc1_.mustUnderstand,_loc1_.data);
}
}