Class BatchFacadeImpl
java.lang.Object
org.apache.olingo.server.core.batchhandler.BatchFacadeImpl
- All Implemented Interfaces:
BatchFacade
-
Constructor Summary
ConstructorsConstructorDescriptionBatchFacadeImpl(ODataHandler oDataHandler, BatchProcessor batchProcessor, boolean isStrict) Creates a new BatchFacade. -
Method Summary
Modifier and TypeMethodDescriptionextractBoundaryFromContentType(String contentType) Extracts the boundary of a multipart/mixed header.handleBatchRequest(BatchRequestPart request) Handles a BatchRequestPart.handleODataRequest(ODataRequest request) Executes an ODataRequest, which must be a part of a change set.
-
Constructor Details
-
BatchFacadeImpl
Creates a new BatchFacade.- Parameters:
oDataHandler- handlerbatchProcessor- batch processorisStrict- mode switch (currently not used)
-
-
Method Details
-
handleODataRequest
public ODataResponse handleODataRequest(ODataRequest request) throws ODataApplicationException, ODataLibraryException Description copied from interface:BatchFacadeExecutes an ODataRequest, which must be a part of a change set. Each request must have a Content-Id header field, which holds an identifier that is unique in the whole batch request.- Specified by:
handleODataRequestin interfaceBatchFacade- Parameters:
request- ODataRequest to process- Returns:
- corresponding ODataResponse to the given request
- Throws:
ODataApplicationExceptionODataLibraryException
-
handleBatchRequest
public ODataResponsePart handleBatchRequest(BatchRequestPart request) throws ODataApplicationException, ODataLibraryException Description copied from interface:BatchFacadeHandles a BatchRequestPart.- Specified by:
handleBatchRequestin interfaceBatchFacade- Parameters:
request- Request to process- Returns:
- corresponding
ODataResponsePart - Throws:
ODataApplicationExceptionODataLibraryException
-
extractBoundaryFromContentType
Description copied from interface:BatchFacadeExtracts the boundary of a multipart/mixed header. See RFC 2046#5.1- Specified by:
extractBoundaryFromContentTypein interfaceBatchFacade- Parameters:
contentType- Content Type- Returns:
- boundary
- Throws:
BatchDeserializerException
-