code: protected String getHostname(String url) {
          if (log.isDebugEnabled()) {
              log.debug("getHostname - url: {}", url);
          }
          String[] parts = url.split("/");
          if (parts.length == 2) {
              return "";
          } else {
              String host = parts[2];
              // strip out default port in case the client added the port explicitly
              if (host.endsWith(":1935")) {
                  // remove default port from connection string
                  return host.substring(0, host.length() - 5);
              }
              return host;
          }
      }
docs: Return hostname for URL.
  
  @param url
  URL
  @return Hostname from that URL