public class NestedGenerator extends AbstractGenerator
_buffer, _buffers, _content, _contentLength, _contentWritten, _date, _endp, _head, _header, _last, _method, _noContent, _persistent, _reason, _state, _status, _uri, _version, NO_BYTES, STATE_CONTENT, STATE_END, STATE_FLUSHING, STATE_HEADER| Constructor and Description |
|---|
NestedGenerator(Buffers buffers,
EndPoint io,
javax.servlet.http.HttpServletResponse response,
java.lang.String nestedIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(Buffer content,
boolean last)
Add content.
|
boolean |
addContent(byte b) |
void |
complete()
Complete the message.
|
void |
completeHeader(HttpFields fields,
boolean allContentAdded) |
int |
flushBuffer() |
boolean |
isRequest() |
boolean |
isResponse() |
int |
prepareUncheckedAddContent()
Prepare buffer for unchecked writes.
|
blockForOutput, completeUncheckedAddContent, flush, getContentBufferSize, getContentWritten, getSendServerVersion, getState, getUncheckedBuffer, getVersion, increaseContentBufferSize, isAllContentWritten, isBufferFull, isCommitted, isComplete, isHead, isIdle, isOpen, isPersistent, isState, isWritten, reset, resetBuffer, returnBuffers, sendError, setContentLength, setDate, setHead, setPersistent, setRequest, setResponse, setSendServerVersion, setVersionpublic void addContent(Buffer content, boolean last) throws java.io.IOException
Generatorjava.io.IOException - if there is a problem flushing the buffers.public boolean addContent(byte b)
throws java.io.IOException
java.io.IOExceptionpublic boolean isRequest()
isRequest in class AbstractGeneratorpublic boolean isResponse()
isResponse in class AbstractGeneratorpublic int prepareUncheckedAddContent()
throws java.io.IOException
AbstractGeneratorprepareUncheckedAddContent in class AbstractGeneratorjava.io.IOExceptionpublic void completeHeader(HttpFields fields, boolean allContentAdded) throws java.io.IOException
completeHeader in interface GeneratorcompleteHeader in class AbstractGeneratorjava.io.IOExceptionpublic void complete()
throws java.io.IOException
complete in interface Generatorcomplete in class AbstractGeneratorjava.io.IOExceptionpublic int flushBuffer()
throws java.io.IOException
flushBuffer in interface GeneratorflushBuffer in class AbstractGeneratorjava.io.IOExceptionCopyright © 2013 FuseSource, Corp.. All Rights Reserved.