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