Response that can hold a limited content in memory.
| Modifier and Type | Method and Description |
|---|---|
| public static ContentResponse | |
| public byte[] | |
| public String | getContentAsString()
Returns: the response content as a string, decoding the bytes using the charset
provided by the |
| public String | |
| public String | getMediaType()
Returns: the media type of the content, such as "text/html" or "application/octet-stream" |
| from | back to summary |
|---|---|
public static ContentResponse from(Response response, byte[] content, String mediaType, String encoding)
| |
| getContent | back to summary |
|---|---|
public byte[] getContent()
| |
| getContentAsString | back to summary |
|---|---|
public String getContentAsString()
| |
| getEncoding | back to summary |
|---|---|
public String getEncoding()
| |
| getMediaType | back to summary |
|---|---|
public String getMediaType()
| |