@Override protected void onClosed(final DefaultNHttpClientConnection conn) { this.handler.closed(conn); }
handler.responseReceived(this); if (this.contentDecoder == null) { resetInput(); handler.endOfInput(this); handler.inputReady(this, this.contentDecoder); if (this.contentDecoder.isCompleted()) { handler.exception(this, ex); } catch (final Exception ex) { handler.exception(this, ex); } finally {
if (this.status == ACTIVE) { if (this.contentEncoder == null && !this.outbuf.hasData()) { handler.requestReady(this); handler.outputReady(this, this.contentEncoder); if (this.contentEncoder.isCompleted()) { resetOutput(); handler.exception(this, ex); } finally {
@Override protected void onException(final DefaultNHttpClientConnection conn, final IOException ex) { this.handler.exception(conn, ex); }
public void connected( final NHttpClientConnection conn, final Object attachment) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Connected (" + attachment + ")"); } this.handler.connected(conn, attachment); }
public void inputReady( final NHttpClientConnection conn, final ContentDecoder decoder) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Input ready" + getRequestMessageID(conn)); } this.handler.inputReady(conn, decoder); if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Content decoder " + decoder); } }
public void endOfInput( final NHttpClientConnection conn) throws IOException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": End of input" + getRequestMessageID(conn)); } this.handler.endOfInput(conn); }
public void timeout( final NHttpClientConnection conn) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Timeout" + getRequestMessageID(conn)); } this.handler.timeout(conn); }
public void requestReady( final NHttpClientConnection conn) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Request ready" + getRequestMessageID(conn)); } this.handler.requestReady(conn); }
public void outputReady( final NHttpClientConnection conn, final ContentEncoder encoder) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Output ready" + getRequestMessageID(conn)); } this.handler.outputReady(conn, encoder); if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Content encoder " + encoder); } }
public void responseReceived( final NHttpClientConnection conn) throws IOException, HttpException { HttpResponse response = conn.getHttpResponse(); if (this.log.isDebugEnabled()) { this.log.debug(conn + ": " + response.getStatusLine() + getRequestMessageID(conn)); } this.handler.responseReceived(conn); }
handler.responseReceived(this); if (this.contentDecoder == null) { resetInput(); handler.endOfInput(this); handler.inputReady(this, this.contentDecoder); if (this.contentDecoder.isCompleted()) { handler.exception(this, ex); } catch (final Exception ex) { handler.exception(this, ex); } finally {
if (this.status == ACTIVE) { if (this.contentEncoder == null && !this.outbuf.hasData()) { handler.requestReady(this); handler.outputReady(this, this.contentEncoder); if (this.contentEncoder.isCompleted()) { resetOutput(); handler.exception(this, ex); } finally {
@Override protected void onException(final DefaultNHttpClientConnection conn, final IOException ex) { this.handler.exception(conn, ex); }
handler.responseReceived(this); if (this.contentDecoder == null) { resetInput(); handler.endOfInput(this); handler.inputReady(this, this.contentDecoder); if (this.contentDecoder.isCompleted()) { handler.exception(this, ex); } catch (final Exception ex) { handler.exception(this, ex); } finally { if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {
if (this.status == ACTIVE) { if (this.contentEncoder == null) { handler.requestReady(this); handler.outputReady(this, this.contentEncoder); if (this.contentEncoder.isCompleted()) { resetOutput(); handler.exception(this, ex); } finally { if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {