| java.lang.Object | |
| ↳ | com.neomades.content.network.NetworkResponse |
Data and headers returned from performQuery(ContentQuery).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, boolean notModified)
Creates a new network response.
| |||||||||||
|
NetworkResponse(byte[] data)
Creates a new network response with data.
| |||||||||||
|
NetworkResponse(byte[] data, Map<String, String> headers)
Creates a new network response.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | getContentType() | ||||||||||
| byte[] |
getData()
Raw data from this response.
| ||||||||||
| Map<String, String> |
getHeaders()
Response HTTP headers.
| ||||||||||
| int |
getStatusCode()
The HTTP status code.
| ||||||||||
| boolean |
notModified()
True if the server returned a 304 (Not Modified).
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new network response.
| statusCode | the HTTP status code |
|---|---|
| data | Response body |
| headers | Headers returned with this response, or null for none |
| notModified | True if the server returned a 304 and the data was already in cache |
Creates a new network response with data.
Creates a new network response.
| headers | HTTP Headers |
|---|
Raw data from this response.
The HTTP status code.
True if the server returned a 304 (Not Modified).