public class Ajp13Generator
extends org.eclipse.jetty.http.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(org.eclipse.jetty.io.Buffers buffers,
org.eclipse.jetty.io.EndPoint io) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(org.eclipse.jetty.io.Buffer content,
boolean last)
Add content.
|
void |
complete()
Complete the message.
|
void |
completeHeader(org.eclipse.jetty.http.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(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 Ajp13Generator(org.eclipse.jetty.io.Buffers buffers,
org.eclipse.jetty.io.EndPoint io)
public static void setServerVersion(String version)
public boolean isRequest()
isRequest in class org.eclipse.jetty.http.AbstractGeneratorpublic boolean isResponse()
isResponse in class org.eclipse.jetty.http.AbstractGeneratorpublic void reset()
reset in interface org.eclipse.jetty.http.Generatorreset in class org.eclipse.jetty.http.AbstractGeneratorpublic int getContentBufferSize()
getContentBufferSize in interface org.eclipse.jetty.http.GeneratorgetContentBufferSize in class org.eclipse.jetty.http.AbstractGeneratorpublic void increaseContentBufferSize(int contentBufferSize)
increaseContentBufferSize in interface org.eclipse.jetty.http.GeneratorincreaseContentBufferSize in class org.eclipse.jetty.http.AbstractGeneratorpublic void addContent(org.eclipse.jetty.io.Buffer content,
boolean last)
throws IOException
content - last - IllegalArgumentException - if content is immutable.IllegalStateException - If the request is not expecting any more content, or if the buffers are full and cannot be flushed.IOException - if there is a problem flushing the buffers.public int prepareUncheckedAddContent()
throws IOException
prepareUncheckedAddContent in class org.eclipse.jetty.http.AbstractGeneratorIOExceptionpublic void completeHeader(org.eclipse.jetty.http.HttpFields fields,
boolean allContentAdded)
throws IOException
completeHeader in interface org.eclipse.jetty.http.GeneratorcompleteHeader in class org.eclipse.jetty.http.AbstractGeneratorIOExceptionpublic void complete()
throws IOException
complete in interface org.eclipse.jetty.http.Generatorcomplete in class org.eclipse.jetty.http.AbstractGeneratorIOExceptionpublic int flushBuffer()
throws IOException
flushBuffer in interface org.eclipse.jetty.http.GeneratorflushBuffer in class org.eclipse.jetty.http.AbstractGeneratorIOExceptionpublic boolean isComplete()
isComplete in interface org.eclipse.jetty.http.GeneratorisComplete in class org.eclipse.jetty.http.AbstractGeneratorpublic void getBodyChunk()
throws IOException
IOExceptionpublic void gotBody()
public void sendCPong()
throws IOException
IOExceptionCopyright © 1995-2016 Mort Bay Consulting. All Rights Reserved.