Class DefaultResponseEntityExtractor
java.lang.Object
de.hybris.platform.odata2services.odata.monitoring.impl.DefaultResponseEntityExtractor
- All Implemented Interfaces:
ResponseEntityExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringapplyExtractors(String contentType, int statusCode, String responseBody) extractFrom(org.apache.olingo.odata2.api.processor.ODataResponse response) Extracts entities returned back in an OData response.protected List<ResponseChangeSetEntity>extractFromBatchResponse(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) protected List<ResponseChangeSetEntity>extractFromSingleResponse(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) protected StringextractIntegrationKey(org.apache.olingo.odata2.api.client.batch.BatchSingleResponse singleResponse) protected StringextractIntegrationKey(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) protected StringgetBodyAsString(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) protected List<org.apache.olingo.odata2.api.client.batch.BatchSingleResponse>parseBatchResponses(org.apache.olingo.odata2.api.processor.ODataResponse response) protected InboundRequestErrorModelparseErrorsFrom(String contentType, int statusCode, String responseBody) protected InboundRequestErrorModelparseResponseErrors(org.apache.olingo.odata2.api.client.batch.BatchSingleResponse singleResponse) protected InboundRequestErrorModelparseResponseErrors(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) voidsetErrorParsers(List<MonitoredRequestErrorParser<InboundRequestErrorModel>> errorParsers) voidsetIntegrationKeyExtractors(List<IntegrationKeyExtractor> integrationKeyExtractors)
-
Constructor Details
-
DefaultResponseEntityExtractor
public DefaultResponseEntityExtractor()
-
-
Method Details
-
extractFrom
public List<ResponseChangeSetEntity> extractFrom(org.apache.olingo.odata2.api.processor.ODataResponse response) Description copied from interface:ResponseEntityExtractorExtracts entities returned back in an OData response. A single response may contain one ore more entities, that were persisted.- Specified by:
extractFromin interfaceResponseEntityExtractor- Parameters:
response- a response to extract entities from- Returns:
- a collection of extracted response entities. A valid response should have at least one response entity.
-
extractFromBatchResponse
protected List<ResponseChangeSetEntity> extractFromBatchResponse(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) -
extractFromSingleResponse
protected List<ResponseChangeSetEntity> extractFromSingleResponse(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) -
parseResponseErrors
protected InboundRequestErrorModel parseResponseErrors(org.apache.olingo.odata2.api.client.batch.BatchSingleResponse singleResponse) -
parseResponseErrors
protected InboundRequestErrorModel parseResponseErrors(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) -
parseErrorsFrom
protected InboundRequestErrorModel parseErrorsFrom(String contentType, int statusCode, String responseBody) -
extractIntegrationKey
protected String extractIntegrationKey(org.apache.olingo.odata2.api.client.batch.BatchSingleResponse singleResponse) -
extractIntegrationKey
protected String extractIntegrationKey(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) -
applyExtractors
-
getBodyAsString
protected String getBodyAsString(org.apache.olingo.odata2.api.processor.ODataResponse oDataResponse) -
parseBatchResponses
protected List<org.apache.olingo.odata2.api.client.batch.BatchSingleResponse> parseBatchResponses(org.apache.olingo.odata2.api.processor.ODataResponse response) -
setErrorParsers
public void setErrorParsers(List<MonitoredRequestErrorParser<InboundRequestErrorModel>> errorParsers) -
setIntegrationKeyExtractors
-