Packagecom.adobe.mediacore.system
Classpublic final class DefaultURLRequestFactory
InheritanceDefaultURLRequestFactory Inheritance Object
Implements URLRequestFactory

Default factory for generating URLRequest instances The default behavior is: If we have the appropriate Flash capabilities we will try to optimize redirection. We will optimize redirection for URLs that have the same location (up to the file name) of a previously redirected URL, as well as subdirectories of that location.



Public Methods
 MethodDefined By
  
Default constructor
DefaultURLRequestFactory
  
create(url:String):URLRequest
Create an URLRequest object based on previous redirected requests.
DefaultURLRequestFactory
  
registerRedirected(request:URLRequest):void
Register a redirected request for future usage when creating URLRequest objects.
DefaultURLRequestFactory
Constructor Detail
DefaultURLRequestFactory()Constructor
public function DefaultURLRequestFactory()

Default constructor

Method Detail
create()method
public function create(url:String):URLRequest

Create an URLRequest object based on previous redirected requests. PSDK defines a default behavior for this with DefaultURLRequestFactory. The user is free to overload this default factory with one that behaves differently

Parameters

url:String — the url for the URLRequest to be created

Returns
URLRequest — an URLRequest created by the redirection rules of the factory
registerRedirected()method 
public function registerRedirected(request:URLRequest):void

Register a redirected request for future usage when creating URLRequest objects. This method is called automatically by PSDK when a request is redirected.

Parameters

request:URLRequest — the URLRequest object to be registered as redirected.