AdfRestXhrFactory is a factory class that creates (if needed) and returns {XMLHttpRequest} instances.
This is an abstract class.
Subclasses should invoke #register method to be the implementation of this class.
Multiple instances of {AdfRestXhrFactory} can be registered. Each factory's getXhr method
should return null if it won't handle the XHR for the passed in parameters.
If all of the factories' getXhr method returns null, the base framework provided object will be used.
AdfRestXhrFactory is a factory class that creates (if needed) and returns {XMLHttpRequest} instances.
This is an abstract class.
Subclasses should invoke #register method to be the implementation of this class.
Multiple instances of {AdfRestXhrFactory} can be registered. Each factory's getXhr method
should return null if it won't handle the XHR for the passed in parameters.
If all of the factories' getXhr method returns null, the base framework provided object will be used.
Method Detail
getXhr
public XMLHttpRequest getXhr(Object xhr, Object properties)
Returns a {XMLHttpRequest} object to be used for REST calls.
If the implementation doesn't handle XHR for the passed in parameters,
it should return null.
Parameters:
xhr
properties
Return:
XMLHttpRequest - A wrapped XHR object that delegates to the passed in {XMLHttpRequest} object,
or a configured passed in {XMLHttpRequest} object