public interface OperationResponseBuilder extends ResponseBuilder
| Modifier and Type | Method and Description |
|---|---|
OperationResponseBuilder |
addHeader(String name,
String value)
Adds a header with the specified name and value in the OperationResponseBuilder object.
|
OperationResponseBuilder |
addHeaders(Map<String,List<String>> headers)
Adds headers in the OperationResponseBuilder object.
|
OperationResponse |
response()
Use this method to build the OperationResponse from the builder.
|
OperationResponseBuilder |
setComplexData(List<Map<String,Object>> complexData)
Can be used to set the response Complex Types, Array of ComplexTypes.
|
OperationResponseBuilder |
setData(List<Object> data)
Can be used to set the response Entity, Array of Entities where the entity is represented by a POJO.
|
OperationResponseBuilder |
setEntityData(List<EntityData> entityData)
Can be used to set the response Entity, Array of Entities.
|
OperationResponseBuilder |
setHeader(String name,
String value)
Sets a header with the specified name and value in the OperationResponseBuilder object.
|
OperationResponseBuilder |
setPrimitiveData(List<Object> primitiveData)
Can be used to set the response single primitive type or collection of primitive types.
|
OperationResponseBuilder setData(List<Object> data)
A - single or array of Java objects.OperationResponseBuilder setEntityData(List<EntityData> entityData)
A - single or array of EntityDataOperationResponseBuilder setComplexData(List<Map<String,Object>> complexData)
A - single or array of Complex TypesOperationResponseBuilder setPrimitiveData(List<Object> primitiveData)
A - single or array of Primitive type ObjectsOperationResponseBuilder addHeaders(Map<String,List<String>> headers)
headers - A java.util.Map> containing the headers to be addedOperationResponseBuilder object containing the added headersOperationResponseBuilder setHeader(String name, String value)
name - A String containing the name of the headervalue - A String containing the header valueOperationResponseBuilder object containing the newly added or updated headerOperationResponseBuilder addHeader(String name, String value)
name - A String containing the name of the headervalue - A String containing the additional header valueOperationResponseBuilder object containing the additional headerOperationResponse response()
Copyright © 2020 SAP. All Rights Reserved.