Class JsonIntegrationKeyExtractor
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.monitoring.impl.JsonIntegrationKeyExtractor
-
- All Implemented Interfaces:
IntegrationKeyExtractor
public class JsonIntegrationKeyExtractor extends java.lang.Object implements IntegrationKeyExtractor
ThisIntegrationKeyExtractorextracts the integration key value from a JSON response
-
-
Constructor Summary
Constructors Constructor Description JsonIntegrationKeyExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringextractIntegrationKey(java.lang.String responseBody, int statusCode)Gets the integrationKey value from theODataResponsebooleanisApplicable(java.lang.String contentType)Indicates whether this IntegrationKeyExtractor is applicable to the givenODataResponse
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(java.lang.String contentType)
Description copied from interface:IntegrationKeyExtractorIndicates whether this IntegrationKeyExtractor is applicable to the givenODataResponse- Specified by:
isApplicablein interfaceIntegrationKeyExtractor- Parameters:
contentType- content type of the response- Returns:
- true if can extract, otherwise false
-
extractIntegrationKey
public java.lang.String extractIntegrationKey(java.lang.String responseBody, int statusCode)Description copied from interface:IntegrationKeyExtractorGets the integrationKey value from theODataResponse- Specified by:
extractIntegrationKeyin interfaceIntegrationKeyExtractor- Parameters:
responseBody- Response body to extract the integrationKey value fromstatusCode- status code of the response- Returns:
- integrationKey value
-
-