org.eclipse.jetty.ajp
Class Ajp13Generator
java.lang.Object
org.eclipse.jetty.http.AbstractGenerator
org.eclipse.jetty.ajp.Ajp13Generator
- All Implemented Interfaces:
- Generator
public class Ajp13Generator
- extends AbstractGenerator
| Fields inherited from class 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 |
| Methods inherited from class org.eclipse.jetty.http.AbstractGenerator |
blockForOutput, completeUncheckedAddContent, flush, getContentBufferSize, getContentWritten, getSendServerVersion, getState, getUncheckedBuffer, getVersion, increaseContentBufferSize, isAllContentWritten, isBufferFull, isCommitted, isHead, isIdle, isOpen, isPersistent, isState, isWritten, resetBuffer, sendError, setContentLength, setDate, setHead, setPersistent, setRequest, setResponse, setSendServerVersion, setVersion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ajp13Generator
public Ajp13Generator(Buffers buffers,
EndPoint io)
setServerVersion
public static void setServerVersion(java.lang.String version)
isRequest
public boolean isRequest()
- Specified by:
isRequest in class AbstractGenerator
isResponse
public boolean isResponse()
- Specified by:
isResponse in class AbstractGenerator
reset
public void reset(boolean returnBuffers)
- Specified by:
reset in interface Generator- Overrides:
reset in class AbstractGenerator
addContent
public void addContent(Buffer content,
boolean last)
throws java.io.IOException
- Add content.
- Parameters:
content - last -
- Throws:
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.
addContent
public boolean addContent(byte b)
throws java.io.IOException
- Add content.
- Parameters:
b - byte
- Returns:
- true if the buffers are full
- Throws:
java.io.IOException
prepareUncheckedAddContent
public int prepareUncheckedAddContent()
throws java.io.IOException
- Prepare buffer for unchecked writes. Prepare the generator buffer to
receive unchecked writes
- Specified by:
prepareUncheckedAddContent in class AbstractGenerator
- Returns:
- the available space in the buffer.
- Throws:
java.io.IOException
completeHeader
public void completeHeader(HttpFields fields,
boolean allContentAdded)
throws java.io.IOException
- Specified by:
completeHeader in interface Generator- Specified by:
completeHeader in class AbstractGenerator
- Throws:
java.io.IOException
complete
public void complete()
throws java.io.IOException
- Complete the message.
- Specified by:
complete in interface Generator- Overrides:
complete in class AbstractGenerator
- Throws:
java.io.IOException
flushBuffer
public long flushBuffer()
throws java.io.IOException
- Specified by:
flushBuffer in interface Generator- Specified by:
flushBuffer in class AbstractGenerator
- Throws:
java.io.IOException
isComplete
public boolean isComplete()
- Specified by:
isComplete in interface Generator- Overrides:
isComplete in class AbstractGenerator
getBodyChunk
public void getBodyChunk()
throws java.io.IOException
- Throws:
java.io.IOException
gotBody
public void gotBody()
sendCPong
public void sendCPong()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.