public interface BatchFacade
Provides methods to process ODataRequest
s and BatchRequestPart
s
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 processODataApplicationException
ODataLibraryException
ODataResponsePart handleBatchRequest(BatchRequestPart request) throws ODataApplicationException, ODataLibraryException
request
- Request to processODataResponsePart
ODataApplicationException
ODataLibraryException
String extractBoundaryFromContentType(String contentType) throws ODataApplicationException, ODataLibraryException
contentType
- Content TypeODataApplicationException
ODataLibraryException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.