public void run() { try { String response = conn.getResponder().processMessage(m); if (response != null) { conn.getAckWriter().writeMessage(response); } else { log.debug("Not responding to incoming message"); } } catch (Exception e) { log.error("Error while processing message: ", e); } } }
public void run() { try { String response = conn.getResponder().processMessage(m); if (response != null) { conn.getAckWriter().writeMessage(response); } else { log.debug("Not responding to incoming message"); } } catch (Exception e) { log.error("Error while processing message: ", e); } } }
/** * 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); }