Class XmlIntegrationKeyExtractor

java.lang.Object
de.hybris.platform.odata2services.odata.monitoring.impl.IntegrationKeyExtractorTemplate
de.hybris.platform.odata2services.odata.monitoring.impl.XmlIntegrationKeyExtractor
All Implemented Interfaces:
IntegrationKeyExtractor

public class XmlIntegrationKeyExtractor extends IntegrationKeyExtractorTemplate
This IntegrationKeyExtractor extracts the integration key value from a XML response
  • Constructor Details

    • XmlIntegrationKeyExtractor

      public XmlIntegrationKeyExtractor()
  • Method Details

    • isApplicable

      public boolean isApplicable(String contentType)
      Description copied from interface: IntegrationKeyExtractor
      Indicates whether this IntegrationKeyExtractor is applicable to the given ODataResponse
      Parameters:
      contentType - content type of the response
      Returns:
      true if can extract, otherwise false
    • extractIntegrationKeyFromNonEmptyBody

      protected String extractIntegrationKeyFromNonEmptyBody(String responseBody, int statusCode)
      Description copied from class: IntegrationKeyExtractorTemplate
      Extracts integration key from the response body in a way specific to the implemenation.
      Specified by:
      extractIntegrationKeyFromNonEmptyBody in class IntegrationKeyExtractorTemplate
      Parameters:
      responseBody - response body to be parsed.
      statusCode - status code of the response.
      Returns:
      integration key value.