@Override public void closed(final NHttpClientConnection conn) { this.handler.closed(conn); }
@Override public void connected(final NHttpClientConnection conn, final Object attachment) { this.handler.connected(conn, attachment); }
@Override public void inputReady( final NHttpClientConnection conn, final ContentDecoder decoder) throws IOException, HttpException { this.handler.inputReady(conn, decoder); }
@Override public void exception(final NHttpClientConnection conn, final Exception ex) { if (ex instanceof HttpException) { this.handler.exception(conn, (HttpException) ex); } else if (ex instanceof IOException) { this.handler.exception(conn, (IOException) ex); } else { if (ex instanceof RuntimeException) { throw (RuntimeException) ex; } else { throw new Error("Unexpected exception: ", ex); } } }
@Override public void requestReady( final NHttpClientConnection conn) throws IOException, HttpException { this.handler.requestReady(conn); }
@Override public void responseReceived( final NHttpClientConnection conn) throws IOException, HttpException { this.handler.responseReceived(conn); }
@Override public void outputReady( final NHttpClientConnection conn, final ContentEncoder encoder) throws IOException, HttpException { this.handler.outputReady(conn, encoder); }
@Override public void timeout(final NHttpClientConnection conn) { this.handler.timeout(conn); }
@Override public void exception(final NHttpClientConnection conn, final Exception ex) { if (ex instanceof HttpException) { this.handler.exception(conn, (HttpException) ex); } else if (ex instanceof IOException) { this.handler.exception(conn, (IOException) ex); } else { if (ex instanceof RuntimeException) { throw (RuntimeException) ex; } else { throw new Error("Unexpected exception: ", ex); } } }
@Override public void requestReady( final NHttpClientConnection conn) throws IOException, HttpException { this.handler.requestReady(conn); }
@Override public void responseReceived( final NHttpClientConnection conn) throws IOException, HttpException { this.handler.responseReceived(conn); }
@Override public void outputReady( final NHttpClientConnection conn, final ContentEncoder encoder) throws IOException, HttpException { this.handler.outputReady(conn, encoder); }
@Override public void timeout(final NHttpClientConnection conn) { this.handler.timeout(conn); }
public void exception(NHttpClientConnection conn, HttpException ex) { getState(conn).failed(ex); this.handler.exception(conn, ex); }
public void requestReady(NHttpClientConnection conn) { this.handler.requestReady(conn); }
public void responseReceived(NHttpClientConnection conn) { this.handler.responseReceived(conn); }
public void outputReady(NHttpClientConnection conn, ContentEncoder encoder) { this.handler.outputReady(conn, encoder); }
@Override public void connected(final NHttpClientConnection conn, final Object attachment) { this.handler.connected(conn, attachment); }
@Override public void closed(final NHttpClientConnection conn) { this.handler.closed(conn); }
public void timeout(NHttpClientConnection conn) { getState(conn).failed(new ConnectionClosedException("Connection timed out")); this.handler.timeout(conn); }