Interface ResponseParser<T>

    • Method Detail

      • extractNextCursor

        Optional<String> extractNextCursor​(byte[] payload)
                                    throws Exception
        Extract the next cursor from a response body.
        Parameters:
        payload - The response body
        Returns:
        Throws:
        IOException
        Exception
      • extractItems

        com.google.common.collect.ImmutableList<T> extractItems​(byte[] payload)
                                                         throws Exception
        Extract the results items from a response body.
        Parameters:
        payload - The reponse body
        Returns:
        Throws:
        Exception