@Beta public final class BatchResponse extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
<T> ActionResponseCollection<T> |
getModificationResult(CollectionValueActionRequestBuilder<T> operation)
Extract the batch item result for the provided OData request.
|
<EntityT extends VdmEntity<?>> |
getModificationResult(CreateRequestBuilder<EntityT> operation)
Extract the batch item result for the provided OData request.
|
<EntityT extends VdmEntity<?>> |
getModificationResult(DeleteRequestBuilder<EntityT> operation)
Extract the batch item result for the provided OData request.
|
<T> ActionResponseSingle<T> |
getModificationResult(SingleValueActionRequestBuilder<T> operation)
Extract the batch item result for the provided OData request.
|
<EntityT extends VdmEntity<?>> |
getModificationResult(UpdateRequestBuilder<EntityT> operation)
Extract the batch item result for the provided OData request.
|
<T> List<T> |
getReadResult(CollectionValueFunctionRequestBuilder<T> operation)
Extract the batch item result for the provided OData request.
|
<T extends VdmEntity<?>> |
getReadResult(GetAllRequestBuilder<T> operation)
Extract the batch item result for the provided OData request.
|
<T extends VdmEntity<?>> |
getReadResult(GetByKeyRequestBuilder<T> operation)
Extract the batch item result for the provided OData request.
|
<T> T |
getReadResult(SingleValueFunctionRequestBuilder<T> operation)
Extract the batch item result for the provided OData request.
|
Map<String,Iterable<String>> |
getResponseHeaders()
Get the response headers.
|
int |
getResponseStatusCode()
Get the response status code.
|
int |
hashCode() |
String |
toString() |
public int getResponseStatusCode()
@Nonnull public Map<String,Iterable<String>> getResponseHeaders()
@Nonnull public <T extends VdmEntity<?>> List<T> getReadResult(@Nonnull GetAllRequestBuilder<T> operation)
T
- The generic entity type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <T> List<T> getReadResult(@Nonnull CollectionValueFunctionRequestBuilder<T> operation)
T
- The generic object type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <T extends VdmEntity<?>> T getReadResult(@Nonnull GetByKeyRequestBuilder<T> operation)
T
- The generic entity type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <T> T getReadResult(@Nonnull SingleValueFunctionRequestBuilder<T> operation)
T
- The generic object type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <EntityT extends VdmEntity<?>> ModificationResponse<EntityT> getModificationResult(@Nonnull CreateRequestBuilder<EntityT> operation)
EntityT
- The generic entity type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <EntityT extends VdmEntity<?>> ModificationResponse<EntityT> getModificationResult(@Nonnull UpdateRequestBuilder<EntityT> operation)
EntityT
- The generic entity type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <EntityT extends VdmEntity<?>> ModificationResponse<EntityT> getModificationResult(@Nonnull DeleteRequestBuilder<EntityT> operation)
EntityT
- The generic entity type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <T> ActionResponseSingle<T> getModificationResult(@Nonnull SingleValueActionRequestBuilder<T> operation)
T
- The generic object type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public <T> ActionResponseCollection<T> getModificationResult(@Nonnull CollectionValueActionRequestBuilder<T> operation)
T
- The generic object type.operation
- The OData operation that was used in the OData batch request.ODataResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.Copyright © 2021 SAP SE. All rights reserved.