protected void processEvent(NextFilter nextFilter, IoSession session, EventType type, Object data) { if (type == EventType.RECEIVED) { nextFilter.messageReceived(session, data); } else if (type == EventType.SENT) { nextFilter.messageSent(session, data); } else if (type == EventType.EXCEPTION) { nextFilter.exceptionCaught(session, (Throwable) data); } else if (type == EventType.IDLE) { nextFilter.sessionIdle(session, (IdleStatus) data); } else if (type == EventType.OPENED) { nextFilter.sessionOpened(session); } else if (type == EventType.CLOSED) { nextFilter.sessionClosed(session); } }
public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { nextFilter.exceptionCaught(session, cause); }
public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) { if (SessionLog.isWarnEnabled(session)) { SessionLog.warn(session, "EXCEPTION:", cause); } nextFilter.exceptionCaught(session, cause); }
public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) { nextFilter.exceptionCaught(session, cause); }