Method Summary |
|
public void | addActiveFilter(OutputFilter filter) Add an output filter to the filter library. |
public void | addFilter(OutputFilter filter) Add an output filter to the filter library. |
public void | clearFilters() Clear filters. |
protected void | commit() Commit the response. |
public int | doWrite(ByteChunk chunk, Response res) Write the contents of a byte chunk. |
public void | endHeaders() End the header block. |
public void | endRequest() End request. |
public void | flush() Flush the response. |
public OutputFilter[] | getFilters() Get filters. |
public OutputStream | getOutputStream() Get the underlying socket output stream. |
public void | nextRequest() End processing of current HTTP request.
Note: All bytes of the current request should have been already
consumed. |
public void | realWriteBytes(byte cbuf, int off, int len) Callback to write data from the buffer. |
public void | recycle() Recycle the output buffer. |
public void | reset() Reset current response. |
public void | sendAck() Send an acknoledgement. |
public void | sendHeader(MessageBytes name, MessageBytes value) Send a header. |
public void | sendHeader(ByteChunk name, ByteChunk value) Send a header. |
public void | sendHeader(String name, String value) Send a header. |
public void | sendStatus() Send the response status line. |
public void | setOutputStream(OutputStream outputStream) Set the underlying socket output stream. |
public void | setSocketBuffer(int socketBufferSize) Set the socket buffer size. |
protected void | write(MessageBytes mb) This method will write the contents of the specyfied message bytes
buffer to the output stream, without filtering. |
protected void | write(ByteChunk bc) This method will write the contents of the specyfied message bytes
buffer to the output stream, without filtering. |
protected void | write(CharChunk cc) This method will write the contents of the specyfied char
buffer to the output stream, without filtering. |
public void | write(byte[] b) This method will write the contents of the specyfied byte
buffer to the output stream, without filtering. |
protected void | write(String s) This method will write the contents of the specyfied String to the
output stream, without filtering. |
protected void | write(int i) This method will print the specified integer to the output stream,
without filtering. |