You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
6.3 KiB
7 lines
6.3 KiB
<!DOCTYPE html><meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.net.WrapperXmlHttpFactory</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Class goog.net.WrapperXmlHttpFactory</h1><a class="source" href="source/lib/goog/net/wrapperxmlhttpfactory.js.src.html#l41">code »</a><pre><code><a href="class_goog_net_XmlHttpFactory.html">goog.net.XmlHttpFactory</a>
|
|
└ goog.net.WrapperXmlHttpFactory</code></pre></header><section><p>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.<h2>Constructor</h2><div class="ctor wrap-details public"><div><div class="ctor"><span class="member">goog.net.WrapperXmlHttpFactory <span class="args">( xhrFactory, optionsFactory )</span></span></div><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>xhrFactory: <code class="type">function(): !<a href="interface_goog_net_XhrLike.html#goog.net.XhrLike.OrNative">goog.net.XhrLike.OrNative</a></code><dd>A function which returns a new XHR object.<dt>optionsFactory: <code class="type">function(): !<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code><dd>A function which returns the
|
|
options associated with xhr objects from this factory.</dl></table></div></div></div></section><div id="visibility-controls"><b>Show:</b><label for="show-public"><span><input type="checkbox" id="show-public" checked/></span>Public</label><label for="show-protected"><span><input type="checkbox" id="show-protected"/></span>Protected</label><label for="show-private"><span><input type="checkbox" id="show-private"/></span>Private</label></div><section id="instance-methods"><h2>Instance Methods</h2><h3>Defined in <code class="type">goog.net.WrapperXmlHttpFactory</code></h3><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/net/wrapperxmlhttpfactory.js.src.html#l62">code »</a><span class="member"><a name="createInstance">createInstance</a> <span class="args">( )</span> ⇒ <code class="type">(XMLHttpRequest|goog.net.XhrLike)</code></span></div></summary></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/net/wrapperxmlhttpfactory.js.src.html#l68">code »</a><span class="member"><a name="getOptions">getOptions</a> <span class="args">( )</span> ⇒ <code class="type">(Object|null)</code></span></div></summary></details></div></div><div class="wrap-details private"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/net/wrapperxmlhttpfactory.js.src.html#l56">code »</a><span class="member"><a name="optionsFactory_">optionsFactory_</a> <span class="args">( )</span> ⇒ <code class="type">Object</code></span></div><p>Options factory method.</summary></details></div></div><div class="wrap-details private"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/net/wrapperxmlhttpfactory.js.src.html#l49">code »</a><span class="member"><a name="xhrFactory_">xhrFactory_</a> <span class="args">( )</span> ⇒ <code class="type">(XMLHttpRequest|goog.net.XhrLike)</code></span></div><p>XHR factory method.</summary></details></div></div><h3>Defined in <code class="type"><a href="class_goog_net_XmlHttpFactory.html">goog.net.XmlHttpFactory</a></code></h3><div class="wrap-details protected"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/net/xmlhttpfactory.js.src.html#l67">code »</a><span class="member"><a name="internalGetOptions">internalGetOptions</a> <span class="args">( )</span> ⇒ <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code></span></div><p>Override this method in subclasses to preserve the caching offered by
|
|
getOptions().</summary><div class="info"><table><tbody><tr><th>Returns<tr><td><dl>Options describing how xhr objects obtained from this
|
|
factory should be used.</dl></table></div></details></div></div></section><section id="instance-properties"><h2>Instance Properties</h2><h3>Defined in <code class="type"><a href="class_goog_net_XmlHttpFactory.html">goog.net.XmlHttpFactory</a></code></h3><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/net/xmlhttpfactory.js.src.html#l41">code »</a><span class="member"><a name="cachedOptions_">cachedOptions_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a></code></span></div><p>Cache of options - we only actually call internalGetOptions once.</summary></details></div></div></section><section id="static-properties"><h2>Static Properties</h2><div class="wrap-details public"><div><details><summary><div><a class="source" href="source/lib/goog/net/wrapperxmlhttpfactory.js.src.html#l41">code »</a><span class="member"><a name="goog.net.WrapperXmlHttpFactory.superClass_">goog.net.WrapperXmlHttpFactory.superClass_</a> : <code class="type"><a href="class_goog_net_XmlHttpFactory.html">goog.net.XmlHttpFactory.prototype</a></code></span></div></summary></details></div></div></section></main><nav id="topnav"><div><div id="menubutton"><label for="sidenav-toggle">Menu</label></div><form id="searchbox"><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></nav><nav id="sidenav"><input type="checkbox" id="sidenav-types-ctrl" /><input type="checkbox" id="sidenav-files-ctrl" /><input type="checkbox" id="sidenav-modules-ctrl" /><a id="sidenav-overview"><div><h4>Overview</h4></div></a><div id="sidenav-types"><label for="sidenav-types-ctrl"><h4>Types</h4></label><i>No data</i></div><div id="sidenav-modules"><label for="sidenav-modules-ctrl"><h4>Modules</h4></label><i>No data</i></div><div id="sidenav-files"><label for="sidenav-files-ctrl"><h4>Files</h4></label><i>No data</i></div><a href="license.html"><div><h4>License</h4></div></a></nav><div id="push-footer"></div></div><footer><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><script src="types.js"></script><script src="dossier.js"></script> |