public final class SimpleHttpResponse extends BasicHttpResponse
SimpleBody
,
Serialized FormConstructor 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, toString
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addHeader, removeHeader, removeHeaders, setHeader, setHeaders
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
public 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)