public interface BatchFacade
Provides methods to process ODataRequests and BatchRequestParts
in the context of a batch request.
Within a BatchProcessor implementation
BatchRequestParts should be passed to handleBatchRequest(BatchRequestPart).
Only if the BatchRequestPart represents a change set, the request will be delegated to
BatchProcessor.processChangeSet(BatchFacade, java.util.List).
Otherwise the requests will be directly executed.
The processor implementation could use handleODataRequest(ODataRequest) to process
requests in a change set.
| Modifier and Type | Method and Description |
|---|---|
String |
extractBoundaryFromContentType(String contentType)
Extracts the boundary of a multipart/mixed header.
|
ODataResponsePart |
handleBatchRequest(BatchRequestPart request)
Handles a BatchRequestPart.
|
ODataResponse |
handleODataRequest(ODataRequest request)
Executes an ODataRequest, which must be a part of a change set.
|
ODataResponse handleODataRequest(ODataRequest request) throws ODataApplicationException, ODataLibraryException
request - ODataRequest to processODataApplicationExceptionODataLibraryExceptionODataResponsePart handleBatchRequest(BatchRequestPart request) throws ODataApplicationException, ODataLibraryException
request - Request to processODataResponsePartODataApplicationExceptionODataLibraryExceptionString extractBoundaryFromContentType(String contentType) throws ODataApplicationException, ODataLibraryException
contentType - Content TypeODataApplicationExceptionODataLibraryExceptionCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.