@Override public boolean flush(final ByteBuffer... buffer) throws IOException { return _underlying.flush(buffer); }
@Override public boolean flush(ByteBuffer... buffer) throws IOException { return _endp.flush(buffer); }
public boolean flush(ByteBuffer... buffer) throws IOException { return _endp.flush(buffer); }
public void getBodyChunk() throws IOException { ByteArrayBuffer bf = new ByteArrayBuffer(AJP13_MORE_CONTENT); _endp.flush(bf); }
private synchronized int flushBuffer() throws IOException { if (!_endp.isOpen()) throw new EofException(); if (_buffer!=null) return _endp.flush(_buffer); return 0; }
private synchronized int flushBuffer() throws IOException { if (!_endp.isOpen()) throw new EofException(); if (_buffer!=null) return _endp.flush(_buffer); return 0; }
private synchronized int flushBuffer() throws IOException { if (!_endp.isOpen()) throw new EofException(); if (_buffer!=null) return _endp.flush(_buffer); return 0; }
private synchronized int flushBuffer() throws IOException { if (!_endp.isOpen()) throw new EofException(); if (_buffer!=null && _buffer.hasContent()) return _endp.flush(_buffer); return 0; }
private synchronized int flushBuffer() throws IOException { if (!_endp.isOpen()) throw new EofException(); if (_buffer!=null && _buffer.hasContent()) return _endp.flush(_buffer); return 0; }
private synchronized int flushBuffer() throws IOException { if (!_endp.isOpen()) throw new EofException(); if (_buffer!=null && _buffer.hasContent()) return _endp.flush(_buffer); return 0; }
public int flushBuffer() throws IOException { if (!_lock.tryLock()) return 0; try { if (!_endp.isOpen()) throw new EofException(); if (_buffer != null) { int flushed = _buffer.hasContent() ? _endp.flush(_buffer) : 0; if (_closed && _buffer.length() == 0) _endp.shutdownOutput(); return flushed; } return 0; } finally { _lock.unlock(); } }
public int flushBuffer() throws IOException { if (!_lock.tryLock()) return 0; try { if (!_endp.isOpen()) throw new EofException(); if (_buffer != null) { int flushed = _buffer.hasContent() ? _endp.flush(_buffer) : 0; if (_closed && _buffer.length() == 0) _endp.shutdownOutput(); return flushed; } return 0; } finally { _lock.unlock(); } }
public int flushBuffer() throws IOException { if (!_lock.tryLock()) return 0; try { if (!_endp.isOpen()) throw new EofException(); if (_buffer != null) { int flushed = _buffer.hasContent() ? _endp.flush(_buffer) : 0; if (_closed && _buffer.length() == 0) _endp.shutdownOutput(); return flushed; } return 0; } finally { _lock.unlock(); } }
public int flushBuffer() throws IOException { if (!_lock.tryLock()) return 0; try { if (!_endp.isOpen()) throw new EofException(); if (_buffer != null) { int flushed = _buffer.hasContent() ? _endp.flush(_buffer) : 0; if (_closed && _buffer.length() == 0) _endp.shutdownOutput(); return flushed; } return 0; } finally { _lock.unlock(); } }
public void sendCPong() throws IOException { Buffer buff = _buffers.getBuffer(); buff.put(AJP13_CPONG_RESPONSE); // flushing cpong response do { _endp.flush(buff); } while (buff.length() > 0); _buffers.returnBuffer(buff); reset(); }
@Override public void onOpen() { super.onOpen(); try { getEndPoint().flush(BufferUtil.EMPTY_BUFFER); if (completed) replaceConnection(); else fillInterested(); } catch (IOException x) { close(); throw new RuntimeIOException(x); } }
@Override public void onOpen() { super.onOpen(); try { getEndPoint().flush(BufferUtil.EMPTY_BUFFER); if (completed) replaceConnection(); else fillInterested(); } catch (IOException x) { close(); throw new RuntimeIOException(x); } }
@Override public void onOpen() { super.onOpen(); try { getEndPoint().flush(BufferUtil.EMPTY_BUFFER); if (completed) replaceConnection(); else fillInterested(); } catch (IOException x) { close(); throw new RuntimeIOException(x); } }
@Override public void onOpen() { super.onOpen(); try { getEndPoint().flush(BufferUtil.EMPTY_BUFFER); if (completed) replaceConnection(); else fillInterested(); } catch (IOException x) { close(); throw new RuntimeIOException(x); } }
void service() throws IOException, ServletException { setCurrentConnection(this); try { getServer().handle(this); completeResponse(); while (!_generator.isComplete() && _endp.isOpen()) _generator.flushBuffer(); _endp.flush(); } finally { setCurrentConnection(null); } }