1 23 package org.hammurapi; 24 25 31 public class ServerEntry { 32 33 private String host="localhost"; 34 private String user="sa"; 35 private String password=""; 36 37 42 public void setHost(String host) { 43 this.host = host; 44 } 45 46 51 public void setPassword(String password) { 52 this.password = password; 53 } 54 55 60 public void setUser(String user) { 61 this.user = user; 62 } 63 68 public ServerEntry(String host, String user, String password) { 69 if (host!=null) { 70 this.host=host; 71 } 72 73 if (user!=null) { 74 this.user=user; 75 } 76 77 if (password!=null) { 78 this.password=password; 79 } 80 } 81 82 85 public String getPassword() { 86 return password; 87 } 88 89 92 public String getUser() { 93 return user; 94 } 95 96 99 public String getHost() { 100 return host; 101 } 102 103 } 104 | Popular Tags |