@Override protected void onException(final DefaultNHttpServerConnection conn, final IOException ex) { this.handler.exception(conn, ex); }
@Override protected void onException(final DefaultNHttpServerConnection conn, final IOException ex) { this.handler.exception(conn, ex); }
@Override protected void onException(final DefaultNHttpServerConnection conn, final IOException ex) { this.handler.exception(conn, ex); }
@Override protected void onException(final DefaultNHttpServerConnection conn, final IOException ex) { this.handler.exception(conn, ex); }
@Override protected void onException(final DefaultNHttpServerConnection defaultNHttpServerConnection, IOException e) { int localPort = defaultNHttpServerConnection.getLocalPort(); NHttpServerEventHandler handler = handlers.get(localPort); try { handler.exception(defaultNHttpServerConnection, e); } catch (final Exception ex) { handler.exception(defaultNHttpServerConnection, ex); } }
@Override protected void onTimeout(final DefaultNHttpServerConnection conn) { try { this.handler.timeout(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
@Override protected void onConnected(final DefaultNHttpServerConnection conn) { try { this.handler.connected(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
@Override protected void onTimeout(final DefaultNHttpServerConnection conn) { try { this.handler.timeout(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
@Override protected void onConnected(final DefaultNHttpServerConnection conn) { try { this.handler.connected(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
@Override protected void onTimeout(final DefaultNHttpServerConnection conn) { try { this.handler.timeout(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
@Override protected void onTimeout(final DefaultNHttpServerConnection conn) { try { this.handler.timeout(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
@Override protected void onConnected(final DefaultNHttpServerConnection conn) { try { this.handler.connected(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
@Override protected void onConnected(final DefaultNHttpServerConnection conn) { try { this.handler.connected(conn); } catch (final Exception ex) { this.handler.exception(conn, ex); } }
public void exception(final NHttpServerConnection conn, final Exception ex) { String msg = ex.getMessage(); if (msg == null) { msg = ""; } if (ex instanceof ConnectionClosedException || ex.getMessage().contains("Connection reset by peer") || ex.getMessage().contains("forcibly closed")) { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": " + ex.getMessage() + " (Probably the keepalive connection was closed)"); } } else { this.log.error(conn + ": " + msg, ex); } this.handler.exception(conn, ex); }
@Override protected void onClosed(final DefaultNHttpServerConnection defaultNHttpServerConnection) { int localPort = defaultNHttpServerConnection.getLocalPort(); NHttpServerEventHandler handler = handlers.get(localPort); try { handler.closed(defaultNHttpServerConnection); } catch (final Exception ex) { handler.exception(defaultNHttpServerConnection, ex); } }
@Override protected void onConnected(final DefaultNHttpServerConnection defaultNHttpServerConnection) { int localPort = defaultNHttpServerConnection.getLocalPort(); NHttpServerEventHandler handler = handlers.get(localPort); try { handler.connected(defaultNHttpServerConnection); } catch (final Exception ex) { handler.exception(defaultNHttpServerConnection, ex); } }
@Override protected void onTimeout(final DefaultNHttpServerConnection defaultNHttpServerConnection) { int localPort = defaultNHttpServerConnection.getLocalPort(); NHttpServerEventHandler handler = handlers.get(localPort); try { handler.timeout(defaultNHttpServerConnection); } catch (final Exception ex) { handler.exception(defaultNHttpServerConnection, ex); } }
@Override protected void onInputReady(final DefaultNHttpServerConnection defaultNHttpServerConnection) { int localPort = defaultNHttpServerConnection.getLocalPort(); NHttpServerEventHandler handler = handlers.get(localPort); try { defaultNHttpServerConnection.consumeInput(handler); } catch (final Exception ex) { handler.exception(defaultNHttpServerConnection, ex); } }
@Override protected void onOutputReady(final DefaultNHttpServerConnection defaultNHttpServerConnection) { int localPort = defaultNHttpServerConnection.getLocalPort(); NHttpServerEventHandler handler = handlers.get(localPort); try { defaultNHttpServerConnection.produceOutput(handler); } catch (final Exception ex) { handler.exception(defaultNHttpServerConnection, ex); } }
handler.exception(this, ex); } finally {