/** * Write all headers into our internal buffer but don't flush them to the * client yet. You must invoke {@link #flush} in order to make that operation. */ public void sendHeaders() throws IOException { action(ActionCode.ACTION_COMMIT, this); commited = true; }
/** * Write all headers into our internal buffer and flush the to the client. */ public void flushHeaders() throws IOException { action(ActionCode.ACTION_COMMIT, this); commited = true; }
/** * Write all headers into our internal buffer but don't flush them to the * client yet. You must invoke {@link #flush} in order to make that operation. */ public void sendHeaders() throws IOException { action(ActionCode.ACTION_COMMIT, this); commited = true; }
/** * Discard any write operations on the {@link Response}. Invoking that method * prevent any write operation to be fluxhed on the network. */ public void discardUpstreamWrites() throws IllegalStateException { action(ActionCode.ACTION_DISCARD_UPSTREAM_WRITE, this); }
/** * Write all headers into our internal buffer and flush the to the client. */ public void flushHeaders() throws IOException { action(ActionCode.ACTION_CLOSE, this); }
public void finish() throws IOException { action(ActionCode.ACTION_CLOSE, this); }
public void finish() throws IOException { action(ActionCode.ACTION_CLOSE, this); }
/** 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; }
public void acknowledge() throws IOException { action(ActionCode.ACTION_ACK, this); }
public void flush() throws IOException { action(ActionCode.ACTION_CLIENT_FLUSH, this); }
public void finish() throws IOException { action(ActionCode.ACTION_CLOSE, this); }
public void acknowledge() throws IOException { action(ActionCode.ACTION_ACK, this); }
public void flush() throws IOException { action(ActionCode.ACTION_CLIENT_FLUSH, this); }
public void acknowledge() throws IOException { action(ActionCode.ACTION_ACK, this); }
/** * Flush the response. * * @throws IOException an undelying I/O error occured */ public void flush() throws IOException { if (!committed) { // Send the connector a request for commit. The connector should // then validate the headers, send them (using sendHeader) and // set the filters accordingly. response.action(ActionCode.ACTION_COMMIT, null); } // Flush the current buffer if (useSocketBuffer) { socketBuffer.flushBuffer(); } }
/** * Flush the response. * * @throws IOException an undelying I/O error occured */ public void flush() throws IOException { if (!committed) { // Send the connector a request for commit. The connector should // then validate the headers, send them (using sendHeader) and // set the filters accordingly. response.action(ActionCode.ACTION_COMMIT, null); } // Flush the current buffer if (useSocketBuffer) { socketBuffer.flushBuffer(); } }
/** * Write a chunk of bytes. */ public void doWrite(ByteChunk chunk/*byte buffer[], int pos, int count*/) throws IOException{ if (isSuspended){ action(ActionCode.RESET_SUSPEND_TIMEOUT,this); } outputBuffer.doWrite(chunk, this); bytesWritten+=chunk.getLength(); }
/** * Write a chunk of bytes. */ public void doWrite(ByteChunk chunk/*byte buffer[], int pos, int count*/) throws IOException{ if (isSuspended){ action(ActionCode.RESET_SUSPEND_TIMEOUT,this); } outputBuffer.doWrite(chunk, this); bytesWritten+=chunk.getLength(); }
/** * End request. * * @throws IOException an undelying I/O error occured */ public void endRequest() throws IOException { if (!committed) { // Send the connector a request for commit. The connector should // then validate the headers, send them (using sendHeader) and // set the filters accordingly. response.action(ActionCode.ACTION_COMMIT, null); } if (finished) return; if (lastActiveFilter != -1) activeFilters[lastActiveFilter].end(); if (useSocketBuffer) { socketBuffer.flushBuffer(); } finished = true; }
/** * End request. * * @throws IOException an undelying I/O error occured */ public void endRequest() throws IOException { if (!committed) { // Send the connector a request for commit. The connector should // then validate the headers, send them (using sendHeader) and // set the filters accordingly. response.action(ActionCode.ACTION_COMMIT, null); } if (finished) return; if (lastActiveFilter != -1) activeFilters[lastActiveFilter].end(); if (useSocketBuffer) { socketBuffer.flushBuffer(); } finished = true; }