/** * Closes the session. * * @param message the error message * @param t the exception which caused the session closing */ protected void closeSession(final String message, final Throwable t) { if (t != null) { LOGGER.error(message, t); proxyIoSession.setAuthenticationFailed(true); } else { LOGGER.error(message); } getSession().closeNow(); }
/** * Closes the session. * * @param message the error message * @param t the exception which caused the session closing */ protected void closeSession(final String message, final Throwable t) { if (t != null) { LOGGER.error(message, t); proxyIoSession.setAuthenticationFailed(true); } else { LOGGER.error(message); } getSession().close(true); }
/** * Closes the session. * * @param message the error message * @param t the exception which caused the session closing */ protected void closeSession(final String message, final Throwable t) { if (t != null) { LOGGER.error(message, t); proxyIoSession.setAuthenticationFailed(true); } else { LOGGER.error(message); } getSession().closeNow(); }
/** * Called when an exception occurs in the chain. A flag is set in the * {@link ProxyIoSession} session's instance to signal that handshake * failed. * * @param nextFilter next filter in the filter chain * @param session the MINA session * @param cause the original exception */ @Override public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.setAuthenticationFailed(true); super.exceptionCaught(nextFilter, session, cause); }
/** * Called when an exception occurs in the chain. A flag is set in the * {@link ProxyIoSession} session's instance to signal that handshake * failed. * * @param nextFilter next filter in the filter chain * @param session the MINA session * @param cause the original exception */ @Override public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session.getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.setAuthenticationFailed(true); super.exceptionCaught(nextFilter, session, cause); }
/** * Called when an exception occurs in the chain. A flag is set in the * {@link ProxyIoSession} session's instance to signal that handshake * failed. * * @param chain the filter chain * @param name the name assigned to this filter * @param nextFilter the next filter */ @Override public void exceptionCaught(NextFilter nextFilter, IoSession session, Throwable cause) throws Exception { ProxyIoSession proxyIoSession = (ProxyIoSession) session .getAttribute(ProxyIoSession.PROXY_SESSION); proxyIoSession.setAuthenticationFailed(true); super.exceptionCaught(nextFilter, session, cause); }