StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
  protected String getURI()  {    StringBuffer buf = new StringBuffer();    buf.append(secure ? "https://" : "http://");    buf.append(hostname);    if (secure)      {        if (port != HTTPConnection.HTTPS_PORT)          {            buf.append(':');            buf.append(port);          }      }    else      {        if (port != HTTPConnection.HTTP_PORT)          {            buf.append(':');            buf.append(port);          }      }    return buf.toString();  }