Class UrlBuilder


  • public final class UrlBuilder
    extends Object
    • Method Detail

      • joinQueryParameters

        public static String joinQueryParameters​(Map<String,​Object> params)
        Joins query parameters from a Map into a String representation.
        Parameters:
        params - The Map containing the query parameters.
        Returns:
        The String representation of the joined query parameters.
      • joinQueryParameters

        public static StringBuilder joinQueryParameters​(StringBuilder sb,
                                                        Map<String,​Object> params)
        Joins query parameters from a Map into a StringBuilder representation.
        Parameters:
        sb - The StringBuilder to append the query parameters to.
        params - The Map containing the query parameters.
        Returns:
        The StringBuilder representation of the joined query parameters.
      • joinStreamUrls

        public static String joinStreamUrls​(ArrayList<String> streams)
        Joins streams from an ArrayList into a String representation.
        Parameters:
        streams - The ArrayList containing the streams.
        Returns:
        The String representation of the joined streams.
      • joinStreamUrls

        public static StringBuilder joinStreamUrls​(StringBuilder sb,
                                                   ArrayList<String> streams)
        Joins streams from an ArrayList into a StringBuilder representation.
        Parameters:
        sb - The StringBuilder to append the streams to.
        streams - The ArrayList containing the streams.
        Returns:
        The StringBuilder representation of the joined streams.
      • buildTimestamp

        public static String buildTimestamp()