|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.http.AbstractGenerator
org.eclipse.jetty.http.HttpGenerator
public class HttpGenerator
HttpGenerator. Builds HTTP Messages.
| 字段摘要 | |
|---|---|
protected boolean |
_bypass
|
| 从类 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 |
| 构造方法摘要 | |
|---|---|
HttpGenerator(Buffers buffers,
EndPoint io)
Constructor. |
|
| 方法摘要 | |
|---|---|
void |
addContent(Buffer content,
boolean last)
Add content. |
void |
complete()
Complete the message. |
void |
completeHeader(HttpFields fields,
boolean allContentAdded)
|
int |
flushBuffer()
|
int |
getBytesBuffered()
|
static Buffer |
getReasonBuffer(int code)
|
boolean |
isBufferFull()
|
boolean |
isEmpty()
|
boolean |
isRequest()
|
boolean |
isResponse()
|
int |
prepareUncheckedAddContent()
Prepare buffer for unchecked writes. |
void |
reset()
|
void |
send1xx(int code)
|
void |
sendResponse(Buffer response)
send complete response. |
static void |
setServerVersion(String version)
|
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected boolean _bypass
| 构造方法详细信息 |
|---|
public HttpGenerator(Buffers buffers,
EndPoint io)
buffers - buffer poolio - the end point to use| 方法详细信息 |
|---|
public static Buffer getReasonBuffer(int code)
public static void setServerVersion(String version)
public void reset()
Generator 中的 resetAbstractGenerator 中的 reset
public void addContent(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 void sendResponse(Buffer response)
throws IOException
response -
IOException
public int prepareUncheckedAddContent()
throws IOException
AbstractGenerator 中的 prepareUncheckedAddContentIOExceptionpublic boolean isBufferFull()
Generator 中的 isBufferFullAbstractGenerator 中的 isBufferFull
public void send1xx(int code)
throws IOException
IOExceptionpublic boolean isRequest()
AbstractGenerator 中的 isRequestpublic boolean isResponse()
AbstractGenerator 中的 isResponse
public void completeHeader(HttpFields fields,
boolean allContentAdded)
throws IOException
Generator 中的 completeHeaderAbstractGenerator 中的 completeHeaderIOException
public void complete()
throws IOException
Generator 中的 completeAbstractGenerator 中的 completeIOException
public int flushBuffer()
throws IOException
Generator 中的 flushBufferAbstractGenerator 中的 flushBufferIOExceptionpublic int getBytesBuffered()
public boolean isEmpty()
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||