Exemple #1
0
 public StringBuilder encode(StringBuilder buffer) {
   if (userInfo != null) {
     userInfo.encode(buffer);
     buffer.append(AT);
     hostPort.encode(buffer);
   } else {
     hostPort.encode(buffer);
   }
   return buffer;
 }
Exemple #2
0
 /**
  * set the password.
  *
  * @param passwd String to set
  */
 public void setPassword(String passwd) {
   if (userInfo == null) userInfo = new UserInfo();
   userInfo.setPassword(passwd);
 }