/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() { action(ActionCode.COMMIT, this); commited = true; }
/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() { action(ActionCode.COMMIT, this); commited = true; }
/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() throws IOException { action(ActionCode.ACTION_COMMIT, this); commited = true; }
/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() throws IOException { action(ActionCode.ACTION_COMMIT, this); commited = true; }
/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() throws IOException { action(ActionCode.ACTION_COMMIT, this); commited = true; }
/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() { action(ActionCode.COMMIT, this); commited = true; }
public void acknowledge() { action(ActionCode.ACK, this); }
public boolean checkRegisterForWrite(boolean internal) { AtomicBoolean ready = new AtomicBoolean(false); synchronized (nonBlockingStateLock) { if (!registeredForWrite || internal) { action(ActionCode.NB_WRITE_INTEREST, ready); registeredForWrite = !ready.get(); } } return ready.get(); }
public boolean checkRegisterForWrite() { AtomicBoolean ready = new AtomicBoolean(false); synchronized (nonBlockingStateLock) { if (!registeredForWrite) { action(ActionCode.NB_WRITE_INTEREST, ready); registeredForWrite = !ready.get(); } } return ready.get(); }
/** * Bytes written to socket - i.e. after compression, chunking, etc. */ public long getBytesWritten(boolean flush) { if (flush) { action(ActionCode.CLIENT_FLUSH, this); } return outputBuffer.getBytesWritten(); } }
/** * Return the amount of bytes written by the lower layer. */ protected int lastWrite() { int res = coyoteResponse.getLastWrite(); if (res == 0) { coyoteResponse.action(ActionCode.ACTION_EVENT_WRITE, null); } return res; }
/** * Bytes written to socket - i.e. after compression, chunking, etc. */ public long getBytesWritten(boolean flush) { if (flush) { action(ActionCode.CLIENT_FLUSH, this); } return outputBuffer.getBytesWritten(); } }
/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() { action(ActionCode.COMMIT, this); setCommitted(true); }
/** * Return the amount of bytes written by the lower layer. */ protected int lastWrite() { int res = coyoteResponse.getLastWrite(); if (res == 0) { coyoteResponse.action(ActionCode.ACTION_EVENT_WRITE, null); } return res; }
/** * Bytes written to socket - i.e. after compression, chunking, etc. */ public long getBytesWritten(boolean flush) { if (flush) { action(ActionCode.CLIENT_FLUSH, this); } return outputBuffer.getBytesWritten(); }
/** * Bytes written to socket - i.e. after compression, chunking, etc. */ public long getBytesWritten(boolean flush) { if (flush) { action(ActionCode.CLIENT_FLUSH, this); } return outputBuffer.getBytesWritten(); } }
public void setTrailerFields(Supplier<Map<String, String>> supplier) { AtomicBoolean trailerFieldsSupported = new AtomicBoolean(false); action(ActionCode.IS_TRAILER_FIELDS_SUPPORTED, trailerFieldsSupported); if (!trailerFieldsSupported.get()) { throw new IllegalStateException(sm.getString("response.noTrailers.notSupported")); } this.trailerFieldsSupplier = supplier; }
/** Signal that we're done with the headers, and body will follow. * Any implementation needs to notify ContextManager, to allow * interceptors to fix headers. */ public void sendHeaders() { action(ActionCode.COMMIT, this); setCommitted(true); }
private void finish() { if (!response.isCommitted()) { response.action(ActionCode.COMMIT, response); } if (finished) return; finished = true; response.finish(); }