Packagecom.adobe.mediacore.system
Interfacepublic interface URLRequestFactory
Implementors DefaultURLRequestFactory

Interface for factory classes used to create URLRequest objects for PSDK. This is needed for creating redirected requests in order to optimize the number of 302 redirect responses, thus facilitating load balancing.



Public Methods
 MethodDefined By
  
create(url:String):URLRequest
Create an URLRequest object based on previous redirected requests.
URLRequestFactory
  
registerRedirected(request:URLRequest):void
Register a redirected request for future usage when creating URLRequest objects.
URLRequestFactory
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.