org.eclipse.jetty.nested
类 NestedGenerator

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

public class NestedGenerator
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
 
构造方法摘要
NestedGenerator(Buffers buffers, EndPoint io, HttpServletResponse response, String nestedIn)
           
 
方法摘要
 void addContent(Buffer content, boolean last)
          Add content.
 boolean addContent(byte b)
           
 void complete()
          Complete the message.
 void completeHeader(HttpFields fields, boolean allContentAdded)
           
 int flushBuffer()
           
 boolean isRequest()
           
 boolean isResponse()
           
 int prepareUncheckedAddContent()
          Prepare buffer for unchecked writes.
 
从类 org.eclipse.jetty.http.AbstractGenerator 继承的方法
blockForOutput, completeUncheckedAddContent, flush, getContentBufferSize, getContentWritten, getSendServerVersion, getState, getUncheckedBuffer, getVersion, increaseContentBufferSize, isAllContentWritten, isBufferFull, isCommitted, isComplete, isHead, isIdle, isOpen, isPersistent, isState, isWritten, reset, 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
 

构造方法详细信息

NestedGenerator

public NestedGenerator(Buffers buffers,
                       EndPoint io,
                       HttpServletResponse response,
                       String nestedIn)
方法详细信息

addContent

public void addContent(Buffer content,
                       boolean last)
                throws IOException
从接口 Generator 复制的描述
Add content.

抛出:
IOException - if there is a problem flushing the buffers.

addContent

public boolean addContent(byte b)
                   throws IOException
抛出:
IOException

isRequest

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

isResponse

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

prepareUncheckedAddContent

public int prepareUncheckedAddContent()
                               throws IOException
从类 AbstractGenerator 复制的描述
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


Copyright © 2013. All Rights Reserved.