The goog.net.WrapperXmlHttpFactory Class

goog.net.WrapperXmlHttpFactory
> goog.net.XmlHttpFactory

goog.net.WrapperXmlHttpFactory(xhrFactory, optionsFactory)

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.

xhrFactory {function() : !(XMLHttpRequest|GearsHttpRequest)}
A function which returns a new XHR object.
optionsFactory {function() : !Object}
A function which returns the options associated with xhr objects from this factory.

.createInstance()

returns {!(XMLHttpRequest|GearsHttpRequest)}
A new XMLHttpRequest instance.

.getOptions()

returns {Object}
Options describing how xhr objects obtained from this factory should be used.