public String toUrlWithoutQuery() {
    StringBuilder sb = toBaseUrl0();
    if (isNonEmpty(path)) {
      sb.append(path);
    }
    return sb.toString();
  }
public String toUrlWithoutQuery ( ) { StringBuilder sb = toBaseUrl0 ( ) ; if ( isNonEmpty ( path ) ) { sb . append ( path ) ; } return sb . toString ( ) ; }
@return [scheme]://[hostname](:[port])/path. Port is omitted if it matches the scheme's default one.