Class UrlHelper


  • public class UrlHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getQueryParam​(java.lang.String urlStr, java.lang.String param)
      Returns the value of query parameter `param` from urlStr, or null when not found.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getQueryParam

        public static java.lang.String getQueryParam​(java.lang.String urlStr,
                                                     java.lang.String param)
        Returns the value of query parameter `param` from urlStr, or null when not found.
        Parameters:
        urlStr - the URL string containing the query param to retrieve
        param - the name of the query param whose value should be returned
        Returns:
        the value of the specified query parameter