public class HttpResponseMessage
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
HTTP_STATUS_NOT_FOUND |
static int |
HTTP_STATUS_SUCCESS
HTTP response codes
|
构造器和说明 |
---|
HttpResponseMessage() |
限定符和类型 | 方法和说明 |
---|---|
void |
appendBody(byte[] b) |
void |
appendBody(java.lang.String s) |
ByteBuffer |
getBody() |
int |
getBodyLength() |
java.util.Map |
getHeaders() |
int |
getResponseCode() |
void |
setContentType(java.lang.String contentType) |
void |
setResponseCode(int responseCode) |
public static final int HTTP_STATUS_SUCCESS
public static final int HTTP_STATUS_NOT_FOUND
public java.util.Map getHeaders()
public void setContentType(java.lang.String contentType)
public void setResponseCode(int responseCode)
public int getResponseCode()
public void appendBody(byte[] b)
public void appendBody(java.lang.String s)
public ByteBuffer getBody()
public int getBodyLength()