public final class SimpleHttpResponse extends BasicHttpResponse
SimpleBody,
Serialized Form| Constructor and Description |
|---|
SimpleHttpResponse(int code) |
SimpleHttpResponse(int code,
String reasonPhrase) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleHttpResponse |
copy(HttpResponse original) |
static SimpleHttpResponse |
create(int code) |
static SimpleHttpResponse |
create(int code,
byte[] content) |
static SimpleHttpResponse |
create(int code,
byte[] content,
ContentType contentType) |
static SimpleHttpResponse |
create(int code,
String content) |
static SimpleHttpResponse |
create(int code,
String content,
ContentType contentType) |
SimpleBody |
getBody() |
byte[] |
getBodyBytes() |
String |
getBodyText() |
ContentType |
getContentType() |
void |
setBody(byte[] bodyBytes,
ContentType contentType) |
void |
setBody(SimpleBody body) |
void |
setBody(String bodyText,
ContentType contentType) |
addHeader, getCode, getLocale, getReason, getReasonPhrase, getVersion, setCode, setHeader, setLocale, setReasonPhrase, setVersion, toStringaddHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeadersclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, removeHeader, removeHeaders, setHeader, setHeaderscontainsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIteratorpublic SimpleHttpResponse(int code)
public SimpleHttpResponse(int code,
String reasonPhrase)
public static SimpleHttpResponse copy(HttpResponse original)
public static SimpleHttpResponse create(int code)
public static SimpleHttpResponse create(int code, byte[] content)
public static SimpleHttpResponse create(int code, byte[] content, ContentType contentType)
public static SimpleHttpResponse create(int code, String content)
public static SimpleHttpResponse create(int code, String content, ContentType contentType)
public SimpleBody getBody()
public byte[] getBodyBytes()
public String getBodyText()
public ContentType getContentType()
public void setBody(byte[] bodyBytes,
ContentType contentType)
public void setBody(SimpleBody body)
public void setBody(String bodyText, ContentType contentType)