77787980818283
private final WebSocketServerFactory factory; private final PathMappings<WebSocketCreator> pathmap = new PathMappings<>(); public WebSocketUpgradeFilter(WebSocketPolicy policy) { this(policy, new MappedByteBufferPool()); }
84858687888990
private WebSocketCreator creator; private List<Class<?>> registeredSocketClasses; public WebSocketServerFactory() { this(WebSocketPolicy.newServerPolicy(), new MappedByteBufferPool()); }
89909192939495
this(WebSocketPolicy.newServerPolicy(), new MappedByteBufferPool()); } public WebSocketServerFactory(WebSocketPolicy policy) { this(policy, new MappedByteBufferPool()); }
103104105106107108109
this(sslContextFactory,null); } public WebSocketClient(SslContextFactory sslContextFactory, Executor executor) { this(sslContextFactory,executor,new MappedByteBufferPool()); }
228229230231232233234235236237238
String name = WebSocketClient.class.getSimpleName() + "@" + hashCode(); if (bufferPool == null) { bufferPool = new MappedByteBufferPool(); } addBean(bufferPool); if (scheduler == null) {
4243444546474849505152
executor = threadPool; scheduler = new JettyScheduler(threadGroup, baseName + "-scheduler"); scheduler.start(); byteBufferPool = new MappedByteBufferPool(); } catch (Exception e) { close(); throw Throwables.propagate(e); }
4142434445464748495051
193194195196197198199200201202203
executor = threadPool; } addBean(executor); if (byteBufferPool == null) byteBufferPool = new MappedByteBufferPool(); addBean(byteBufferPool); if (scheduler == null) scheduler = new ScheduledExecutorScheduler(name + "-scheduler", false); addBean(scheduler);
3233343536373839404142
executor = threadPool; scheduler = new ScheduledExecutorScheduler("http-client-" + name + "-scheduler", true); scheduler.start(); byteBufferPool = new MappedByteBufferPool(); } catch (Exception e) { close(); throw Throwables.propagate(e); }