Packagenet.guttershark.akamai
Classpublic class Ident
ImplementsIDisposable

The Ident class is used for pinging an Akamai Ident service to determine the best IP to use for a Flash Media Server on the Akamai network. The Ident service returns an XML file with an IP address in it. Ident services take geographical positions into account and returns the best IP address to use for a Flash Media Server on Akamai's network.

See also

findBestIPForAkamaiApplication()


Public Properties
 PropertyDefined by
  contentLoader : URLLoader
[read-only] The loader used to load XML from the Akamai ident service.
Ident
  ip : String
The IP address that was found from the Akamai Ident Service.
Ident
Public Methods
 MethodDefined by
  
Constructor for Ident instances.
Ident
  
dispose():void
Dispose of this Ident instance.
Ident
  
findBestIPForAkamaiApplication(akamaiAppURL:String):void
Find the best IP for an Akamai Application.
Ident
Property detail
contentLoaderproperty
contentLoader:URLLoader  [read-only]

The loader used to load XML from the Akamai ident service.

Implementation
    public function get contentLoader():URLLoader
ipproperty 
public var ip:String

The IP address that was found from the Akamai Ident Service.

Constructor detail
Ident()constructor
public function Ident()

Constructor for Ident instances.

Method detail
dispose()method
public function dispose():void

Dispose of this Ident instance.

findBestIPForAkamaiApplication()method 
public function findBestIPForAkamaiApplication(akamaiAppURL:String):void

Find the best IP for an Akamai Application.

Parameters
akamaiAppURL:String — Your akamai application URI.

See also


Example
Using Ident:
 
   import net.guttershark.akamai.AkamaiNCManager;
   import net.guttershark.akamai.Ident;
   import flash.events.Event;
   var i:Ident = new Ident();
   i.contentLoader.addEventListener(Event.COMPLETE, onc);
   function onc(e:Event):void
   {
      trace(e.target.data.ip);
      trace(i.ip);
      AkamaiNCManager.FMS_IP = i.ip;
   }
   i.findBestIPForAkamaiApplication("http://cp44952.edgefcs.net/");