135136137138139140141142143144145
break; case "http": bayeuxServer.addTransport(new JSONTransport(bayeuxServer)); break; case "asynchttp": bayeuxServer.addTransport(new AsyncJSONTransport(bayeuxServer)); break; default: throw new IllegalArgumentException("Invalid transport: " + token); } }
296297298299300301302303304305306
{ try { ClassLoader loader = Thread.currentThread().getContextClassLoader(); loader.loadClass("javax.servlet.ReadListener"); return new AsyncJSONTransport(this); } catch (Exception x) { return new JSONTransport(this); }