@Override public boolean isCommitted() { return _channel.isCommitted(); }
@Override public boolean isCommitted() { return _channel.isCommitted(); }
@Override public boolean isCommitted() { return _channel.isCommitted(); }
@Override public boolean isCommitted() { return _channel.isCommitted(); }
@Override public boolean isCommitted() { return _channel.isCommitted(); }
@Override public boolean isCommitted() { return _channel.isCommitted(); }
@Override public void resetBuffer() { if(isCommitted()) throw new IllegalStateException("Committed"); }
/** * <p>Requests to write (in a blocking way) the given response content buffer, * committing the response if needed.</p> * * @param content the content buffer to write * @param complete whether the content is complete for the response * @throws IOException if the write fails */ protected void write(ByteBuffer content, boolean complete) throws IOException { if (isCommitted()) { _transport.send(null, content, complete); } else { ResponseInfo info = _response.newResponseInfo(); boolean committed = commitResponse(info, content, complete); if (!committed) throw new IOException("Concurrent commit"); } }
/** * <p>Requests to write (in a blocking way) the given response content buffer, * committing the response if needed.</p> * * @param content the content buffer to write * @param complete whether the content is complete for the response * @throws IOException if the write fails */ protected void write(ByteBuffer content, boolean complete) throws IOException { if (isCommitted()) { _transport.send(null, content, complete); } else { ResponseInfo info = _response.newResponseInfo(); boolean committed = commitResponse(info, content, complete); if (!committed) throw new IOException("Concurrent commit"); } }
LOG.warn("Could not send response error 500: "+x); else if (isCommitted())
LOG.warn("Could not send response error 500: "+x); else if (isCommitted())
return; if (_channel.isCommitted())
return; if (_channel.isCommitted())
return; if (_channel.isCommitted())
_request.getAsyncContext().complete(); else if (isCommitted())
_request.setAttribute(RequestDispatcher.ERROR_EXCEPTION_TYPE, x.getClass()); if (isCommitted())
if (hasContent && !_response.isContentComplete(_response.getHttpOutput().getWritten())) if (isCommitted()) abort(new IOException("insufficient content written")); else