Important Note
SimpleHttpResponses are intended for simple scenarios where entities inclosed
in responses are known to be small. It is generally recommended to use streaming
org.s, for instance, such as based on
AbstractCharResponseConsumer or AbstractBinResponseConsumer.
SimpleBody, AbstractCharResponseConsumer, AbstractBinResponseConsumer
| Modifier and Type | Field and Description |
|---|---|
| private SimpleBody | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static SimpleHttpResponse | |
| public static SimpleHttpResponse | |
| public static SimpleHttpResponse | |
| public static SimpleHttpResponse | |
| public static SimpleHttpResponse | |
| public static SimpleHttpResponse | |
| public SimpleBody | |
| public byte[] | |
| public String | |
| public ContentType | |
| public void | |
| public void | |
| public void |
| body | back to summary |
|---|---|
| private SimpleBody body | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| SimpleHttpResponse | back to summary |
|---|---|
| public SimpleHttpResponse(final int code) | |
| SimpleHttpResponse | back to summary |
|---|---|
| public SimpleHttpResponse(final int code, final String reasonPhrase) | |
| copy | back to summary |
|---|---|
| public static SimpleHttpResponse copy(final HttpResponse original) | |
| create | back to summary |
|---|---|
| public static SimpleHttpResponse create(final int code) | |
| create | back to summary |
|---|---|
| public static SimpleHttpResponse create(final int code, final String content, final ContentType contentType) | |
| create | back to summary |
|---|---|
| public static SimpleHttpResponse create(final int code, final String content) | |
| create | back to summary |
|---|---|
| public static SimpleHttpResponse create(final int code, final byte[] content, final ContentType contentType) | |
| create | back to summary |
|---|---|
| public static SimpleHttpResponse create(final int code, final byte[] content) | |
| getBody | back to summary |
|---|---|
| public SimpleBody getBody() | |
| getBodyBytes | back to summary |
|---|---|
| public byte[] getBodyBytes() | |
| getBodyText | back to summary |
|---|---|
| public String getBodyText() | |
| getContentType | back to summary |
|---|---|
| public ContentType getContentType() | |
| setBody | back to summary |
|---|---|
| public void setBody(final SimpleBody body) | |
| setBody | back to summary |
|---|---|
| public void setBody(final byte[] bodyBytes, final ContentType contentType) | |
| setBody | back to summary |
|---|---|
| public void setBody(final String bodyText, final ContentType contentType) | |