@Override protected void onClosed(final DefaultNHttpServerConnection conn) { this.handler.closed(conn); }
this.hasBufferedInput = this.inbuf.hasData(); onRequestReceived(this.request); handler.requestReceived(this); if (this.contentDecoder == null) { 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.responseReady(this); handler.outputReady(this, this.contentEncoder); if (this.contentEncoder.isCompleted()) { resetOutput(); handler.exception(this, ex); } finally {
@Override protected void onException(final DefaultNHttpServerConnection conn, final IOException 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); } }
public void responseReady( final NHttpServerConnection conn) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Response ready"); } this.handler.responseReady(conn); }
public void endOfInput( final NHttpServerConnection conn) throws IOException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": End of input"); } this.handler.endOfInput(conn); }
public void connected( final NHttpServerConnection conn) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Connected"); } this.handler.connected(conn); }
public void timeout( final NHttpServerConnection conn) throws IOException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Timeout"); } this.handler.timeout(conn); }
public void outputReady( final NHttpServerConnection conn, final ContentEncoder encoder) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Output ready"); } this.handler.outputReady(conn, encoder); if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Content encoder " + encoder); } }
public void inputReady( final NHttpServerConnection conn, final ContentDecoder decoder) throws IOException, HttpException { if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Input ready"); } this.handler.inputReady(conn, decoder); if (this.log.isDebugEnabled()) { this.log.debug(conn + ": Content decoder " + decoder); } }
public void requestReceived( final NHttpServerConnection conn) throws IOException, HttpException { HttpRequest request = conn.getHttpRequest(); if (this.log.isDebugEnabled()) { this.log.debug(conn + ": " + request.getRequestLine()); } this.handler.requestReceived(conn); }
this.hasBufferedInput = this.inbuf.hasData(); onRequestReceived(this.request); handler.requestReceived(this); if (this.contentDecoder == null) { 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.responseReady(this); handler.outputReady(this, this.contentEncoder); if (this.contentEncoder.isCompleted()) { resetOutput(); handler.exception(this, ex); } finally {
@Override protected void onException(final DefaultNHttpServerConnection conn, final IOException ex) { this.handler.exception(conn, ex); }
handler.requestReceived(this); if (this.contentDecoder == null) { 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) { handler.responseReady(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) {