Class DefaultResponseParser

    • Field Detail

      • LOG

        protected final org.slf4j.Logger LOG
      • objectMapper

        protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • instanceId

        protected final String instanceId
    • Constructor Detail

      • DefaultResponseParser

        public DefaultResponseParser()
    • Method Detail

      • extractItems

        public com.google.common.collect.ImmutableList<String> extractItems​(byte[] payload)
                                                                     throws Exception
        Extract the results items from a response body.
        Specified by:
        extractItems in interface ResponseParser<String>
        Parameters:
        payload - The reponse body
        Returns:
        Throws:
        Exception
      • extractItems

        public com.google.common.collect.ImmutableList<String> extractItems​(String json)
                                                                     throws Exception
        Extract the main items from a results json payload.
        Parameters:
        json - The results json payload
        Returns:
        Throws:
        IOException
        Exception
      • parseToString

        protected String parseToString​(byte[] payload)