| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private static int | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] | |
| private static byte[] |
| Access | Constructor and Description |
|---|---|
| public | HttpGenerator(Buffers
buffer pool buffers, EndPoint io, int Size of the buffer to allocate for HTTP header headerBufferSize, int Size of the buffer to allocate for HTTP content contentBufferSize)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addContent(Buffer content, boolean last)
Implements org. |
| public boolean | Returns: true if the buffers are fullbyte b)Implements org. |
| public void | complete()
Overrides org. Implements org. |
| public void | completeHeader(HttpFields fields, boolean allContentAdded)
Implements abstract org. Implements org. |
| public long | flush()
Implements abstract org. Implements org. |
| public int | |
| public boolean | isBufferFull()
Overrides org. Implements org. |
| public boolean | |
| private void | |
| protected int | Returns: the available space in the buffer.Implements abstract org. |
| public void | reset(boolean returnBuffers)
Overrides org. Implements org. |
| public void | |
| public static void | |
| public String |
| _bufferChunked | back to summary |
|---|---|
| private boolean _bufferChunked | |
| _bypass | back to summary |
|---|---|
| private boolean _bypass | |
| _needCRLF | back to summary |
|---|---|
| private boolean _needCRLF | |
| _needEOC | back to summary |
|---|---|
| private boolean _needEOC | |
| CHUNK_SPACE | back to summary |
|---|---|
| private static int CHUNK_SPACE | |
| CONNECTION_ | back to summary |
|---|---|
| private static byte[] CONNECTION_ | |
| CONNECTION_CLOSE | back to summary |
|---|---|
| private static byte[] CONNECTION_CLOSE | |
| CONNECTION_KEEP_ALIVE | back to summary |
|---|---|
| private static byte[] CONNECTION_KEEP_ALIVE | |
| CONTENT_LENGTH_0 | back to summary |
|---|---|
| private static byte[] CONTENT_LENGTH_0 | |
| CRLF | back to summary |
|---|---|
| private static byte[] CRLF | |
| LAST_CHUNK | back to summary |
|---|---|
| private static byte[] LAST_CHUNK | |
| SERVER | back to summary |
|---|---|
| private static byte[] SERVER | |
| TRANSFER_ENCODING_CHUNKED | back to summary |
|---|---|
| private static byte[] TRANSFER_ENCODING_CHUNKED | |
| HttpGenerator | back to summary |
|---|---|
| public HttpGenerator(Buffers buffers, EndPoint io, int headerBufferSize, int contentBufferSize) Constructor.
| |
| addContent | back to summary |
|---|---|
| public void addContent(Buffer content, boolean last) throws IOException Implements org. Add content.
| |
| addContent | back to summary |
|---|---|
| public boolean addContent(byte b) throws IOException Implements org. Add content.
| |
| complete | back to summary |
|---|---|
| public void complete() throws IOException Overrides org. Implements org. Complete the message. | |
| completeHeader | back to summary |
|---|---|
| public void completeHeader(HttpFields fields, boolean allContentAdded) throws IOException Implements abstract org. Implements org. | |
| flush | back to summary |
|---|---|
| public long flush() throws IOException Implements abstract org. Implements org. | |
| getBytesBuffered | back to summary |
|---|---|
| public int getBytesBuffered() | |
| isBufferFull | back to summary |
|---|---|
| public boolean isBufferFull() Overrides org. Implements org. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| prepareBuffers | back to summary |
|---|---|
| private void prepareBuffers() | |
| prepareUncheckedAddContent | back to summary |
|---|---|
| protected int prepareUncheckedAddContent() throws IOException Implements abstract org. Prepare buffer for unchecked writes. Prepare the generator buffer to receive unchecked writes
| |
| reset | back to summary |
|---|---|
| public void reset(boolean returnBuffers) Overrides org. Implements org. | |
| sendResponse | back to summary |
|---|---|
| public void sendResponse(Buffer response) throws IOException send complete response. | |
| setServerVersion | back to summary |
|---|---|
| public static void setServerVersion(String version) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |