public String toUri()

in webindex/modules/core/src/main/java/webindex/core/models/URL.java [233:242]


  public String toUri() {
    String reverseDomain = getReverseDomain();
    String nonDomain = getReverseHost().substring(reverseDomain.length());
    String portStr = "";
    if ((!secure && port != 80) || (secure && port != 443)) {
      portStr = Integer.toString(port);
    }
    return reverseDomain + URI_SEP + nonDomain + URI_SEP + (secure ? "s" : "o") + portStr + URI_SEP
        + path;
  }