| java.lang.Object org.mortbay.jetty.AbstractGenerator org.mortbay.jetty.HttpGenerator
HttpGenerator | public class HttpGenerator extends AbstractGenerator (Code) | | HttpGenerator. Builds HTTP Messages.
author: gregw |
HttpGenerator | public HttpGenerator(Buffers buffers, EndPoint io, int headerBufferSize, int contentBufferSize)(Code) | | Constructor.
Parameters: buffers - buffer pool Parameters: headerBufferSize - Size of the buffer to allocate for HTTP header Parameters: contentBufferSize - Size of the buffer to allocate for HTTP content |
addContent | public boolean addContent(byte b) throws IOException(Code) | | Add content.
Parameters: b - byte true if the buffers are full throws: IOException - |
isBufferFull | public boolean isBufferFull()(Code) | | |
prepareUncheckedAddContent | protected int prepareUncheckedAddContent() throws IOException(Code) | | Prepare buffer for unchecked writes.
Prepare the generator buffer to receive unchecked writes
the available space in the buffer. throws: IOException - |
reset | public void reset(boolean returnBuffers)(Code) | | |
setServerVersion | public static void setServerVersion(String version)(Code) | | |
|
|