@Override protected void init() { // Fail gateway startup if the obsolete system property "org.kaazing.gateway.transport.ws.INACTIVITY_TIMEOUT" // from JMS Edition release 3.5.3 is used (KG-7125) WsCheckAliveFilter.validateSystemProperties(configuration, logger); super.init(); }
@Override protected IoFuture dispose0() throws Exception { scheduler.shutdownNow(); return super.dispose0(); }
if (!canBind(schemeName)) { throw new IllegalArgumentException(format("Unexpected scheme \"%s\" for URI: %s", schemeName, location)); synchronized (started) { if (!started.get()) { init(); started.set(true); bindInternal(address, handler, initializer); address = address.getOption(ALTERNATE);
super.bind(address, handler, balancerInitializer);
@Override @SuppressWarnings({ "unchecked", "rawtypes" }) protected void finishSessionInitialization0(IoSession session, IoFuture future) { ResourceAddress address = LOCAL_ADDRESS.get(session); IoSessionInitializer initializer = getInitializer(address); if (initializer != null) { initializer.initializeSession(session, future); } }
@Override public void init() { super.init(); sseCodec = new SseAcceptCodecFilter(); }
@Override protected IoFuture dispose0() throws Exception { scheduler.shutdownNow(); return super.dispose0(); }
@Override protected void init() { super.init(); try { sslContext = sslContextFactory.newInstance(); } catch (UnrecoverableKeyException uke) { // Catch these exceptions separately, so that we can throw // a RuntimeException and cause the Gateway to not start up. // The likely cause is that the keystore contains keys that // are encrypted using a passphrase which differs from the // passphrase protecting the keystore itself (see KG-6925). throw new RuntimeException("Unable to load necessary certificate keys from keystore; perhaps your keys are protected by passwords that are different from the keystore password?", uke); } catch (Exception e) { logger.error("Exception while creating SSL context: ", e); } certificateSelection = new SslCertificateSelectionFilter(false); }
@Override protected IoFuture dispose0() throws Exception { scheduler.shutdownNow(); return super.dispose0(); }
@Override public void init() { super.init(); HttpNextAddressFilter httpNextAddress = new HttpNextAddressFilter(); httpNextAddress.setResourceAddressFactory(addressFactory); httpNextAddress.setBindings(bindings); this.httpNextAddress = httpNextAddress; // TODO: verify injections and throw exception if not in a valid start state }
@Override protected IoFuture dispose0() throws Exception { for (IoSessionIdleTracker tracker : sessionInactivityTrackers) { tracker.dispose(); } scheduler.shutdownNow(); return super.dispose0(); }