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(SimpleBody body) |
void |
setBodyBytes(byte[] bodyBytes,
ContentType contentType) |
void |
setBodyText(String bodyText,
ContentType contentType) |
addHeader, getCode, getLocale, getReason, getReasonPhrase, getVersion, setCode, setHeader, setLocale, setReasonPhrase, setVersion, toStringaddHeader, clear, containsHeader, containsHeaders, countHeaders, getAllHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, getSingleHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, removeHeader, removeHeaders, setHeader, setHeaderscontainsHeader, containsHeaders, countHeaders, getAllHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, getSingleHeader, 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, String content, ContentType contentType)
public static SimpleHttpResponse create(int code, String content)
public static SimpleHttpResponse create(int code, byte[] content, ContentType contentType)
public static SimpleHttpResponse create(int code, byte[] content)
public void setBody(SimpleBody body)
public void setBodyBytes(byte[] bodyBytes,
ContentType contentType)
public void setBodyText(String bodyText, ContentType contentType)
public SimpleBody getBody()
public ContentType getContentType()
public String getBodyText()
public byte[] getBodyBytes()
Copyright © 1999–2018 The Apache Software Foundation. All rights reserved.