public class ResponseBuilder
extends java.lang.Object
ResponseResponseCreators| Modifier and Type | Method and Description |
|---|---|
ResponseBuilder |
body(HttpBodyConverter httpBodyConverter) |
ResponseBuilder |
body(java.lang.String body)
Sets the body
|
ResponseBuilder |
header(java.lang.String key,
java.lang.String value)
Sets a header
|
static ResponseBuilder |
response()
Instantiates a new instance
|
ResponseBuilder |
status(int status)
Sets the status
|
public static ResponseBuilder response()
public ResponseBuilder body(java.lang.String body)
body - body of the responsefor further customizationspublic ResponseBuilder status(int status)
status - status of the responsefor further customizationspublic ResponseBuilder header(java.lang.String key, java.lang.String value)
key - header namevalue - header valuefor further customizationspublic ResponseBuilder body(HttpBodyConverter httpBodyConverter)