public interface BatchFacade
ODataRequest
and BatchRequestPart
.
Within a BatchProcessor
implementation BatchRequestsParts should be passed to
handleBatchRequest(BatchRequestPart)
. If only if the BatchRequests part 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 processes
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 a ODataRequest, which must be a part of a change set.
|
ODataResponse handleODataRequest(ODataRequest request) throws BatchDeserializerException
request
- ODataRequest to processBatchDeserializerException
ODataResponsePart handleBatchRequest(BatchRequestPart request) throws BatchDeserializerException
request
- Request to processODataResponsePart
BatchDeserializerException
String extractBoundaryFromContentType(String contentType) throws BatchDeserializerException
contentType
- Content TypeBatchDeserializerException
Copyright © 2013–2015 The Apache Software Foundation. All rights reserved.