public class Ajp13Generator 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 |
|---|
Ajp13Generator(Buffers buffers,
EndPoint io) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(Buffer content,
boolean last)
Add content.
|
void |
complete()
Complete the message.
|
void |
completeHeader(HttpFields fields,
boolean allContentAdded) |
int |
flushBuffer() |
void |
getBodyChunk() |
int |
getContentBufferSize() |
void |
gotBody() |
void |
increaseContentBufferSize(int contentBufferSize) |
boolean |
isComplete() |
boolean |
isRequest() |
boolean |
isResponse() |
int |
prepareUncheckedAddContent()
Prepare buffer for unchecked writes.
|
void |
reset() |
void |
sendCPong() |
static void |
setServerVersion(java.lang.String version) |
blockForOutput, completeUncheckedAddContent, flush, getContentWritten, getSendServerVersion, getState, getUncheckedBuffer, getVersion, isAllContentWritten, isBufferFull, isCommitted, isHead, isIdle, isOpen, isPersistent, isState, isWritten, resetBuffer, returnBuffers, sendError, setContentLength, setDate, setHead, setPersistent, setRequest, setResponse, setSendServerVersion, setVersionpublic static void setServerVersion(java.lang.String version)
public boolean isRequest()
isRequest in class AbstractGeneratorpublic boolean isResponse()
isResponse in class AbstractGeneratorpublic void reset()
reset in interface Generatorreset in class AbstractGeneratorpublic int getContentBufferSize()
getContentBufferSize in interface GeneratorgetContentBufferSize in class AbstractGeneratorpublic void increaseContentBufferSize(int contentBufferSize)
increaseContentBufferSize in interface GeneratorincreaseContentBufferSize in class AbstractGeneratorcontentBufferSize - The contentBufferSize to set.public void addContent(Buffer content, boolean last) throws java.io.IOException
content - last - java.lang.IllegalArgumentException - if content is immutable.java.lang.IllegalStateException - If the request is not expecting any more content, or if the buffers are full and cannot be flushed.java.io.IOException - if there is a problem flushing the buffers.public int prepareUncheckedAddContent()
throws java.io.IOException
prepareUncheckedAddContent 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.IOExceptionpublic boolean isComplete()
isComplete in interface GeneratorisComplete in class AbstractGeneratorpublic void getBodyChunk()
throws java.io.IOException
java.io.IOExceptionpublic void gotBody()
public void sendCPong()
throws java.io.IOException
java.io.IOExceptionCopyright © 2013 FuseSource, Corp.. All Rights Reserved.