public class HttpGenerator extends Object
Modifier and Type | Class and Description |
---|---|
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 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() |
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() |
HttpGenerator.State |
getState() |
boolean |
isChunking() |
boolean |
isCommitted() |
boolean |
isEnd() |
boolean |
isIdle() |
boolean |
isPersistent() |
boolean |
isState(HttpGenerator.State state) |
boolean |
isWritten() |
void |
reset() |
void |
setPersistent(boolean persistent) |
void |
setSendServerVersion(boolean sendServerVersion) |
static void |
setServerVersion(String version) |
String |
toString() |
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 static void setServerVersion(String version)
public void reset()
public boolean getSendServerVersion()
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 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)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.