java.lang.Object | |
↳ | com.urbanairship.http.Response.Builder |
Builds a Request Response.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Response.Builder(int status)
Creates a new response builder.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Response |
create()
Creates a response.
| ||||||||||
Response.Builder |
setLastModified(long lastModified)
Set the last modified time in milliseconds.
| ||||||||||
Response.Builder |
setResponseBody(String responseBody)
Set the response body.
| ||||||||||
Response.Builder |
setResponseHeaders(Map<String, List<String>> responseHeaders)
Set the response headers.
| ||||||||||
Response.Builder |
setResponseMessage(String responseMessage)
Set the response message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new response builder.
status | The response status code. |
---|
Set the last modified time in milliseconds.
lastModified | The modified time in milliseconds. |
---|
Set the response body.
responseBody | The response body string. |
---|
Set the response headers.
responseHeaders | The response headers. |
---|
Set the response message.
responseMessage | The response message string. |
---|