/** * Called by subclasses when a new Connection is made. Registers the * ApplicationRouter with the given Connection and stores it. * * @param c existing connection */ public synchronized void newConnection(ActiveConnection c) { c.getResponder().setApplicationRouter(applicationRouter); c.activate(); connections.add(c); // keep track of connections notifyListeners(c); }
/** * Called by subclasses when a new Connection is made. Registers the * ApplicationRouter with the given Connection and stores it. * * @param c existing connection */ public synchronized void newConnection(ActiveConnection c) { c.getResponder().setApplicationRouter(applicationRouter); c.activate(); connections.add(c); // keep track of connections notifyListeners(c); }