/** * Called internally when a new connection is detected for * the server. If the current autoHost property is true then * startHostingOnConnection(hc) is called. */ @Override public void connectionAdded(Server server, HostedConnection hc) { if( log.isLoggable(Level.FINEST) ) { log.log(Level.FINEST, "connectionAdded({0}, {1})", new Object[]{server, hc}); } if( autoHost ) { startHostingOnConnection(hc); } }
/** * Called internally when an existing connection is leaving * the server. This method always calls stopHostingOnConnection(hc). * Implementations should be aware that if they stopHostingOnConnection() * early that they will get a second call when the connection goes away. */ @Override public void connectionRemoved(Server server, HostedConnection hc) { if( log.isLoggable(Level.FINEST) ) { log.log(Level.FINEST, "connectionRemoved({0}, {1})", new Object[]{server, hc}); } stopHostingOnConnection(hc); } }
/** * Called internally when a new connection is detected for * the server. If the current autoHost property is true then * startHostingOnConnection(hc) is called. */ @Override public void connectionAdded(Server server, HostedConnection hc) { if( log.isLoggable(Level.FINEST) ) { log.log(Level.FINEST, "connectionAdded({0}, {1})", new Object[]{server, hc}); } if( autoHost ) { startHostingOnConnection(hc); } }
/** * Called internally when an existing connection is leaving * the server. This method always calls stopHostingOnConnection(hc). * Implementations should be aware that if they stopHostingOnConnection() * early that they will get a second call when the connection goes away. */ @Override public void connectionRemoved(Server server, HostedConnection hc) { if( log.isLoggable(Level.FINEST) ) { log.log(Level.FINEST, "connectionRemoved({0}, {1})", new Object[]{server, hc}); } stopHostingOnConnection(hc); } }