org.mortbay.jetty.ajp
public class Ajp13Generator extends org.mortbay.jetty.AbstractGenerator
_buffer, _buffers, _close, _content, _contentBufferSize, _contentLength, _contentWritten, _endp, _head, _header, _headerBufferSize, _last, _method, _noContent, _reason, _state, _status, _uri, _version, STATE_CONTENT, STATE_END, STATE_FLUSHING, STATE_HEADER
Constructor and Description |
---|
Ajp13Generator(org.mortbay.io.Buffers buffers,
org.mortbay.io.EndPoint io,
int headerBufferSize,
int contentBufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
addContent(org.mortbay.io.Buffer content,
boolean last)
Add content.
|
boolean |
addContent(byte b)
Add content.
|
void |
complete()
Complete the message.
|
void |
completeHeader(org.mortbay.jetty.HttpFields fields,
boolean allContentAdded) |
long |
flush() |
void |
getBodyChunk() |
void |
gotBody() |
boolean |
isComplete() |
protected int |
prepareUncheckedAddContent()
Prepare buffer for unchecked writes.
|
void |
reset(boolean returnBuffers) |
void |
sendCPong() |
static void |
setServerVersion(java.lang.String version) |
getContentBufferSize, getContentWritten, getReason, getReasonBuffer, getSendServerVersion, getState, getUncheckedBuffer, getVersion, increaseContentBufferSize, isBufferFull, isCommitted, isContentWritten, isHead, isIdle, isPersistent, isState, resetBuffer, sendError, setContentLength, setHead, setPersistent, setRequest, setResponse, setSendServerVersion, setVersion
public Ajp13Generator(org.mortbay.io.Buffers buffers, org.mortbay.io.EndPoint io, int headerBufferSize, int contentBufferSize)
public static void setServerVersion(java.lang.String version)
public void reset(boolean returnBuffers)
reset
in interface org.mortbay.jetty.Generator
reset
in class org.mortbay.jetty.AbstractGenerator
public void addContent(org.mortbay.io.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 boolean addContent(byte b) throws java.io.IOException
b
- bytejava.io.IOException
protected int prepareUncheckedAddContent() throws java.io.IOException
prepareUncheckedAddContent
in class org.mortbay.jetty.AbstractGenerator
java.io.IOException
public void completeHeader(org.mortbay.jetty.HttpFields fields, boolean allContentAdded) throws java.io.IOException
completeHeader
in interface org.mortbay.jetty.Generator
completeHeader
in class org.mortbay.jetty.AbstractGenerator
java.io.IOException
public void complete() throws java.io.IOException
complete
in interface org.mortbay.jetty.Generator
complete
in class org.mortbay.jetty.AbstractGenerator
java.io.IOException
public long flush() throws java.io.IOException
flush
in interface org.mortbay.jetty.Generator
flush
in class org.mortbay.jetty.AbstractGenerator
java.io.IOException
public boolean isComplete()
isComplete
in interface org.mortbay.jetty.Generator
isComplete
in class org.mortbay.jetty.AbstractGenerator
public void getBodyChunk() throws java.io.IOException
java.io.IOException
public void gotBody()
public void sendCPong() throws java.io.IOException
java.io.IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.