net.WrapperXmlHttpFactory Extends goog.net.XmlHttpFactory
An xhr factory subclass which can be constructed using two factory methods. This exists partly to allow the preservation of goog.net.XmlHttp.setFactory() with an unchanged signature.

Inheritance

Constructor

goog.net.WrapperXmlHttpFactory(xhrFactoryoptionsFactory)

Parameters

xhrFactory : function():!goog.net.XhrLike.OrNative
A function which returns a new XHR object.
optionsFactory : function():!Object
A function which returns the options associated with xhr objects from this factory.

Instance Methods

Public Protected Private
createInstance()
No description.
code »
getOptions()
No description.
code »
optionsFactory_()
Options factory method.
code »
xhrFactory_()
XHR factory method.
code »
createInstance() !goog.net.XhrLike.OrNative
No description.
Returns: !goog.net.XhrLike.OrNative  A new XhrLike instance.
code »
getOptions() Object
No description.
Returns: Object  Options describing how xhr objects obtained from this factory should be used.
code »
internalGetOptions() Object
Override this method in subclasses to preserve the caching offered by getOptions().
Returns: Object  Options describing how xhr objects obtained from this factory should be used.
code »

Instance Properties

constructor :
No description.
Code »
cachedOptions_ :
Cache of options - we only actually call internalGetOptions once.
Code »

Static Properties

goog.net.WrapperXmlHttpFactory.superClass_ :
No description.
Code »

Package net

Package Reference