public class OperationResponseBuilderImpl extends Object implements OperationResponseBuilder
| Constructor and Description |
|---|
OperationResponseBuilderImpl() |
| 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>> data)
Can be used to set the response Complex Types, Array of ComplexTypes.
|
OperationResponseBuilder |
setData(List data)
Can be used to set the response Entity, Array of Entities where the entity is represented by a POJO.
|
OperationResponseBuilder |
setEntityData(List<EntityData> data)
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> data)
Can be used to set the response single primitive type or collection of primitive types.
|
public OperationResponseBuilder setEntityData(List<EntityData> data)
OperationResponseBuildersetEntityData in interface OperationResponseBuilderpublic OperationResponseBuilder setData(List data)
OperationResponseBuildersetData in interface OperationResponseBuilderpublic OperationResponseBuilder setComplexData(List<Map<String,Object>> data)
OperationResponseBuildersetComplexData in interface OperationResponseBuilderpublic OperationResponseBuilder setPrimitiveData(List<Object> data)
OperationResponseBuildersetPrimitiveData in interface OperationResponseBuilderpublic OperationResponseBuilder addHeaders(Map<String,List<String>> headers)
OperationResponseBuilderaddHeaders in interface OperationResponseBuilderheaders - A java.util.Map> containing the headers to be addedOperationResponseBuilder object containing the added headerspublic OperationResponseBuilder setHeader(String name, String value)
OperationResponseBuildersetHeader in interface OperationResponseBuildername - A String containing the name of the headervalue - A String containing the header valueOperationResponseBuilder object containing the newly added or updated headerpublic OperationResponseBuilder addHeader(String name, String value)
OperationResponseBuilderaddHeader in interface OperationResponseBuildername - A String containing the name of the headervalue - A String containing the additional header valueOperationResponseBuilder object containing the additional headerpublic OperationResponse response()
OperationResponseBuilderresponse in interface OperationResponseBuilderCopyright © 2020 SAP. All Rights Reserved.