org.eclipse.jetty.ajp
类 Ajp13Generator

java.lang.Object
  继承者 org.eclipse.jetty.http.AbstractGenerator
      继承者 org.eclipse.jetty.ajp.Ajp13Generator
所有已实现的接口:
Generator

public class Ajp13Generator
extends AbstractGenerator


字段摘要
 
从类 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
 
从接口 org.eclipse.jetty.http.Generator 继承的字段
LAST, MORE
 
构造方法摘要
Ajp13Generator(Buffers buffers, EndPoint io)
           
 
方法摘要
 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(String version)
           
 
从类 org.eclipse.jetty.http.AbstractGenerator 继承的方法
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, setVersion
 
从类 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(String version)

isRequest

public boolean isRequest()
指定者:
AbstractGenerator 中的 isRequest

isResponse

public boolean isResponse()
指定者:
AbstractGenerator 中的 isResponse

reset

public void reset()
指定者:
接口 Generator 中的 reset
覆盖:
AbstractGenerator 中的 reset

getContentBufferSize

public int getContentBufferSize()
指定者:
接口 Generator 中的 getContentBufferSize
覆盖:
AbstractGenerator 中的 getContentBufferSize
返回:
Returns the contentBufferSize.

increaseContentBufferSize

public void increaseContentBufferSize(int contentBufferSize)
指定者:
接口 Generator 中的 increaseContentBufferSize
覆盖:
AbstractGenerator 中的 increaseContentBufferSize
参数:
contentBufferSize - The contentBufferSize to set.

addContent

public void addContent(Buffer content,
                       boolean last)
                throws IOException
Add content.

参数:
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.

prepareUncheckedAddContent

public int prepareUncheckedAddContent()
                               throws IOException
Prepare buffer for unchecked writes. Prepare the generator buffer to receive unchecked writes

指定者:
AbstractGenerator 中的 prepareUncheckedAddContent
返回:
the available space in the buffer.
抛出:
IOException

completeHeader

public void completeHeader(HttpFields fields,
                           boolean allContentAdded)
                    throws IOException
指定者:
接口 Generator 中的 completeHeader
指定者:
AbstractGenerator 中的 completeHeader
抛出:
IOException

complete

public void complete()
              throws IOException
Complete the message.

指定者:
接口 Generator 中的 complete
覆盖:
AbstractGenerator 中的 complete
抛出:
IOException

flushBuffer

public int flushBuffer()
                throws IOException
指定者:
接口 Generator 中的 flushBuffer
指定者:
AbstractGenerator 中的 flushBuffer
抛出:
IOException

isComplete

public boolean isComplete()
指定者:
接口 Generator 中的 isComplete
覆盖:
AbstractGenerator 中的 isComplete

getBodyChunk

public void getBodyChunk()
                  throws IOException
抛出:
IOException

gotBody

public void gotBody()

sendCPong

public void sendCPong()
               throws IOException
抛出:
IOException


Copyright © 2013. All Rights Reserved.