コード例 #1
0
 private void saveRepo(String accPath, DavRepo davRepo) {
   String[] arr = txtHost.getText().split(":");
   davRepo.setHostName(arr[0]);
   if (arr.length > 1) {
     int port = Integer.parseInt(arr[1]);
     davRepo.setPort(port);
   } else {
     davRepo.setPort(80);
   }
   davRepo.setUser(txtAccountName.getText());
   davRepo.setPwd(txtPassword.getPassword());
   davRepo.setRootPath(accPath);
 }