public interface BatchProcessor extends ODataProcessor
Modifier and Type | Method and Description |
---|---|
ODataResponse |
executeBatch(BatchHandler handler,
String contentType,
InputStream content)
Executes a OData batch request and provide Batch Response as
ODataResponse |
BatchResponsePart |
executeChangeSet(BatchHandler handler,
List<ODataRequest> requests)
Executes a Change Set and provide BatchResponsePart as
BatchResponsePart that contains the responses to
change requests. |
getContext, setContext
ODataResponse executeBatch(BatchHandler handler, String contentType, InputStream content) throws ODataException
ODataResponse
handler
- batch handlercontentType
- the content type of the requestcontent
- Batch Request bodyODataResponse
objectODataException
BatchResponsePart executeChangeSet(BatchHandler handler, List<ODataRequest> requests) throws ODataException
BatchResponsePart
that contains the responses to
change requests.
The method has to define a rollback semantic that may be applied when a request within a Change Set fails
(all-or-nothing requirement).
If a request within a Change Set fails, instead of Change Set Response should be returned the error responsehandler
- batch handlerrequests
- list of single change requestsBatchResponsePart
objectODataException
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.