public class HttpGenerator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpGenerator.CachedHttpField |
static class |
HttpGenerator.Info |
static class |
HttpGenerator.RequestInfo |
static class |
HttpGenerator.ResponseInfo |
static class |
HttpGenerator.Result |
static class |
HttpGenerator.State |
Modifier and Type | Field and Description |
---|---|
static boolean |
__STRICT |
static int |
CHUNK_SIZE |
static HttpGenerator.ResponseInfo |
CONTINUE_100_INFO |
static HttpGenerator.ResponseInfo |
PROGRESS_102_INFO |
static HttpGenerator.ResponseInfo |
RESPONSE_500_INFO |
Constructor and Description |
---|
HttpGenerator() |
HttpGenerator(boolean sendServerVersion,
boolean sendXPoweredBy) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
HttpGenerator.Result |
generateRequest(HttpGenerator.RequestInfo info,
ByteBuffer header,
ByteBuffer chunk,
ByteBuffer content,
boolean last) |
HttpGenerator.Result |
generateResponse(HttpGenerator.ResponseInfo info,
ByteBuffer header,
ByteBuffer chunk,
ByteBuffer content,
boolean last) |
long |
getContentPrepared() |
static byte[] |
getReasonBuffer(int code) |
boolean |
getSendServerVersion()
Deprecated.
|
HttpGenerator.State |
getState() |
boolean |
isChunking() |
boolean |
isCommitted() |
boolean |
isEnd() |
boolean |
isIdle() |
boolean |
isNoContent() |
boolean |
isPersistent() |
boolean |
isState(HttpGenerator.State state) |
boolean |
isWritten() |
static void |
putTo(HttpField field,
ByteBuffer bufferInFillMode) |
static void |
putTo(HttpFields fields,
ByteBuffer bufferInFillMode) |
void |
reset() |
static void |
setJettyVersion(String serverVersion) |
void |
setPersistent(boolean persistent) |
void |
setSendServerVersion(boolean sendServerVersion)
Deprecated.
|
String |
toString() |
public static final boolean __STRICT
public static final HttpGenerator.ResponseInfo CONTINUE_100_INFO
public static final HttpGenerator.ResponseInfo PROGRESS_102_INFO
public static final HttpGenerator.ResponseInfo RESPONSE_500_INFO
public static final int CHUNK_SIZE
public HttpGenerator()
public HttpGenerator(boolean sendServerVersion, boolean sendXPoweredBy)
public static void setJettyVersion(String serverVersion)
public void reset()
@Deprecated public boolean getSendServerVersion()
@Deprecated public void setSendServerVersion(boolean sendServerVersion)
public HttpGenerator.State getState()
public boolean isState(HttpGenerator.State state)
public boolean isIdle()
public boolean isEnd()
public boolean isCommitted()
public boolean isChunking()
public boolean isNoContent()
public void setPersistent(boolean persistent)
public boolean isPersistent()
public boolean isWritten()
public long getContentPrepared()
public void abort()
public HttpGenerator.Result generateRequest(HttpGenerator.RequestInfo info, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) throws IOException
IOException
public HttpGenerator.Result generateResponse(HttpGenerator.ResponseInfo info, ByteBuffer header, ByteBuffer chunk, ByteBuffer content, boolean last) throws IOException
IOException
public static byte[] getReasonBuffer(int code)
public static void putTo(HttpField field, ByteBuffer bufferInFillMode)
public static void putTo(HttpFields fields, ByteBuffer bufferInFillMode)
Copyright © 1995-2015 Webtide. All Rights Reserved.