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