public abstract class CreateResponse extends Response
| Constructor and Description |
|---|
CreateResponse() |
| Modifier and Type | Method and Description |
|---|---|
static CreateResponse |
setError(ErrorResponse errorResponse)
Populates error in the response in the event of a failed create operation,
and returns the same.
|
static CreateResponseBuilder |
setSuccess()
Returns a response builder using which the response header and the content can be populated
in the event of a successful create operation.
|
public static CreateResponseBuilder setSuccess()
CreateResponseBuilder objectpublic static CreateResponse setError(ErrorResponse errorResponse)
errorResponse - An ErrorResponse object containing the error message and status codeCreateResponse object containing the errorCopyright © 2020 SAP. All Rights Reserved.