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