public interface ReadResponseBuilder extends ResponseBuilder
| Modifier and Type | Method and Description |
|---|---|
ReadResponseBuilder |
addHeader(String name,
String value)
Adds a header with the specified name and value in the ReadResponseBuilder object.
|
ReadResponseBuilder |
addHeaders(Map<String,List<String>> headers)
Adds headers in the ReadResponseBuilder object.
|
ReadResponseBuilder |
audit(boolean enable)
Deprecated.
|
ReadResponse |
response()
Returns an instance of ReadResponse object.
|
ReadResponseBuilder |
setData(EntityData entityData)
Sets an EntityData object corresponding to the read entity in the ReadResponseBuilder object.
|
ReadResponseBuilder |
setData(Map<String,Object> data)
Sets key-value pairs representing the properties of the read entity in the ReadResponseBuilder object.
|
ReadResponseBuilder |
setData(Object pojo)
Sets a POJO object corresponding to the read entity in the ReadResponseBuilder object.
|
ReadResponseBuilder |
setHeader(String name,
String value)
Sets a header with the specified name and value in the ReadResponseBuilder object.
|
ReadResponseBuilder addHeaders(Map<String,List<String>> headers)
headers - A java.util.Map> containing the headers to be addedReadResponseBuilder object containing the added headersReadResponseBuilder setData(Map<String,Object> data)
data - A Map object that represents the read entityReadResponseBuilder object containing the read entityReadResponseBuilder setData(EntityData entityData)
entityData - An EntityData object that represents the read entityReadResponseBuilder object containing the read entityReadResponseBuilder setData(Object pojo)
pojo - A POJO Object that represents the read entityReadResponseBuilder object containing the read entityReadResponseBuilder setHeader(String name, String value)
name - A String containing the name of the headervalue - A String containing the header valueReadResponseBuilder object containing the newly added or updated headerReadResponseBuilder addHeader(String name, String value)
name - A String containing the name of the headervalue - A String containing the additional header valueReadResponseBuilder object containing the additional header@Deprecated ReadResponseBuilder audit(boolean enable)
enable - A boolean to enable or disable auditingReadResponseBuilder object containing the updated auditing attributeReadResponse response()
ReadResponse objectCopyright © 2020 SAP. All Rights Reserved.