org.eclipse.jetty.http
public interface Generator
Modifier and Type | Field and Description |
---|---|
static boolean |
LAST |
static boolean |
MORE |
Modifier and Type | Method and Description |
---|---|
void |
addContent(Buffer content,
boolean last)
Add content.
|
boolean |
addContent(byte b)
Add content.
|
void |
complete() |
void |
completeHeader(HttpFields responseFields,
boolean last) |
int |
flushBuffer() |
int |
getContentBufferSize() |
long |
getContentWritten() |
void |
increaseContentBufferSize(int size) |
boolean |
isAllContentWritten() |
boolean |
isBufferFull() |
boolean |
isCommitted() |
boolean |
isComplete() |
boolean |
isIdle() |
boolean |
isPersistent() |
boolean |
isWritten() |
void |
reset() |
void |
resetBuffer() |
void |
returnBuffers() |
void |
sendError(int code,
java.lang.String reason,
java.lang.String content,
boolean close) |
void |
setContentLength(long length) |
void |
setDate(Buffer timeStampBuffer) |
void |
setHead(boolean head) |
void |
setPersistent(boolean persistent) |
void |
setRequest(java.lang.String method,
java.lang.String uri) |
void |
setResponse(int status,
java.lang.String reason) |
void |
setSendServerVersion(boolean sendServerVersion) |
void |
setVersion(int version) |
static final boolean LAST
static final boolean MORE
void addContent(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.boolean addContent(byte b) throws java.io.IOException
b
- bytejava.io.IOException
void complete() throws java.io.IOException
java.io.IOException
void completeHeader(HttpFields responseFields, boolean last) throws java.io.IOException
java.io.IOException
int flushBuffer() throws java.io.IOException
java.io.IOException
int getContentBufferSize()
long getContentWritten()
boolean isWritten()
boolean isAllContentWritten()
void increaseContentBufferSize(int size)
boolean isBufferFull()
boolean isCommitted()
boolean isComplete()
boolean isPersistent()
void reset()
void resetBuffer()
void returnBuffers()
void sendError(int code, java.lang.String reason, java.lang.String content, boolean close) throws java.io.IOException
java.io.IOException
void setHead(boolean head)
void setRequest(java.lang.String method, java.lang.String uri)
void setResponse(int status, java.lang.String reason)
void setSendServerVersion(boolean sendServerVersion)
void setVersion(int version)
boolean isIdle()
void setContentLength(long length)
void setPersistent(boolean persistent)
void setDate(Buffer timeStampBuffer)
Copyright © 2016. All Rights Reserved.