Class JsonIntegrationKeyExtractor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String extractIntegrationKey​(java.lang.String responseBody, int statusCode)
      Gets the integrationKey value from the ODataResponse
      boolean isApplicable​(java.lang.String contentType)
      Indicates whether this IntegrationKeyExtractor is applicable to the given ODataResponse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonIntegrationKeyExtractor

        public JsonIntegrationKeyExtractor()
    • Method Detail

      • isApplicable

        public boolean isApplicable​(java.lang.String contentType)
        Description copied from interface: IntegrationKeyExtractor
        Indicates whether this IntegrationKeyExtractor is applicable to the given ODataResponse
        Specified by:
        isApplicable in interface IntegrationKeyExtractor
        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: IntegrationKeyExtractor
        Gets the integrationKey value from the ODataResponse
        Specified by:
        extractIntegrationKey in interface IntegrationKeyExtractor
        Parameters:
        responseBody - Response body to extract the integrationKey value from
        statusCode - status code of the response
        Returns:
        integrationKey value