@Beta public class ODataRequestBatch extends ODataRequestGeneric
Modifier and Type | Class and Description |
---|---|
static class |
ODataRequestBatch.Changeset
The Changeset representation of the OData Batch operation.
|
DEFAULT_FORMAT
Constructor and Description |
---|
ODataRequestBatch(String servicePath,
ODataProtocol protocol)
Default constructor for OData Batch request.
|
Modifier and Type | Method and Description |
---|---|
ODataRequestBatch |
addFunction(ODataRequestFunction request)
Add an OData Function request to the current OData Batch request.
|
ODataRequestBatch |
addRead(ODataRequestRead request)
Add an OData Read request to the current OData Batch request.
|
ODataRequestBatch |
addReadByKey(ODataRequestReadByKey request)
Add an OData Read-By-Key request to the current OData Batch request.
|
ODataRequestBatch.Changeset |
beginChangeset()
Instantiate a new changeset to the current OData Batch request.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
ODataRequestResultMultipartGeneric |
execute(org.apache.http.client.HttpClient httpClient)
Execute the OData request with the provided HttpClient reference.
|
AtomicInteger |
getContentId() |
protected Map<String,String> |
getHeaders()
Map of HTTP header key-values which are added to the OData request.
|
URI |
getRelativeUri()
Get the static request URI of the OData resource.
|
List<com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestBatch.BatchItem> |
getRequests() |
String |
getServicePath() |
protected Supplier<UUID> |
getUuidProvider() |
int |
hashCode() |
addHeader, addHeaderIfAbsent, addListener, addQueryParameter, getListeners, getProtocol, getQueryParameters, getRequestQuery, setCsrfTokenRetriever, setResponseFormat
public ODataRequestBatch(@Nonnull String servicePath, @Nonnull ODataProtocol protocol)
servicePath
- The OData service pathprotocol
- The OData protocol@Nonnull public URI getRelativeUri()
ODataRequestGeneric
getRelativeUri
in class ODataRequestGeneric
@Nonnull public ODataRequestBatch addRead(@Nonnull ODataRequestRead request)
request
- The Read request.@Nonnull public ODataRequestBatch addReadByKey(@Nonnull ODataRequestReadByKey request)
request
- The Read-By-Key request.@Nonnull public ODataRequestBatch addFunction(@Nonnull ODataRequestFunction request)
request
- The Function request.@Nonnull public ODataRequestBatch.Changeset beginChangeset()
@Nonnull public ODataRequestResultMultipartGeneric execute(@Nonnull org.apache.http.client.HttpClient httpClient)
ODataRequestExecutable
httpClient
- The HttpClient.@Nonnull protected Map<String,String> getHeaders()
ODataRequestGeneric
getHeaders
in class ODataRequestGeneric
@Nonnull public List<com.sap.cloud.sdk.datamodel.odata.client.request.ODataRequestBatch.BatchItem> getRequests()
public AtomicInteger getContentId()
public boolean equals(@Nullable Object o)
equals
in class ODataRequestGeneric
protected boolean canEqual(@Nullable Object other)
canEqual
in class ODataRequestGeneric
public int hashCode()
hashCode
in class ODataRequestGeneric
Copyright © 2020 SAP SE. All rights reserved.