code: public String getAuthority() {
          String userInfo = getUserInfo();
          StringBuilder auth = new StringBuilder();
          if(!"*".equals(userInfo)) {
              auth.append(userInfo).append("@");
          }
          auth.append('@').append(host).append(':').append(port);
          return auth.toString();
      }
docs: Gets the authority part of this <code>URL</code> (the domain).
  Eg: www.lime49.com OR user:pwd@domain.com
  @return The authority part of this <code>URL</code>