| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Response |
build()
Build the Response instance.
|
Response.Builder |
setBody(T body)
Set the response body.
|
Response.Builder |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Set the response headers.
|
Response.Builder |
setStatus(int status)
Set the response status code.
|
public Response.Builder setBody(T body)
body - The response body of type T.public Response.Builder setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
headers - The response headers as a map.public Response.Builder setStatus(int status)
status - The status code.public Response build()