1 Clazz.declarePackage ("JU");
2 Clazz.load (["java.net.URLStreamHandlerFactory", "java.util.Hashtable"], "JU.AjaxURLStreamHandlerFactory", ["JU.AjaxURLStreamHandler"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.htFactories = null;
5 Clazz.instantialize (this, arguments);
6 }, JU, "AjaxURLStreamHandlerFactory", null, java.net.URLStreamHandlerFactory);
7 Clazz.prepareFields (c$, function () {
8 this.htFactories = new java.util.Hashtable ();
10 Clazz.overrideMethod (c$, "createURLStreamHandler",
12 var fac = this.htFactories.get (protocol);
13 if (fac == null) this.htFactories.put (protocol, fac = new JU.AjaxURLStreamHandler (protocol));
14 return (fac.protocol == null ? null : fac);