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. |
protected void | flushBuffer() Callback to write data from the buffer. |
public OutputFilter[] | getFilters() Get filters. |
public NioSelectorPool | getSelectorPool() |
public NioChannel | getSocket() Get the underlying socket input stream. |
public long | getWriteTimeout() |
public void | nextRequest() End processing of current HTTP request.
Note: All bytes of the current request should have been already
consumed. |
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 | setSelectorPool(NioSelectorPool pool) |
public void | setSocket(NioChannel socket) Set the underlying socket. |
public void | setSocketBuffer(int socketBufferSize) Set the socket buffer size. |
public void | setWriteTimeout(long writeTimeout) |
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. |