1 6 7 package org.contineo.communication; 8 9 import javax.servlet.http.HttpServletRequest ; 10 import org.apache.struts.action.ActionMapping; 11 import org.apache.struts.validator.ValidatorForm; 12 13 17 public class EMailAccount extends ValidatorForm { 18 19 private static final long serialVersionUID = 1L; 20 21 24 private int accountId; 25 28 private String userName; 29 32 private String mailAddress; 33 36 private String provider; 37 40 private String host; 41 44 private String port; 45 48 private String accountUser; 49 52 private String accountPassword; 53 56 private String smtpHost; 57 58 59 public EMailAccount() { 60 accountId = 0; 61 userName = ""; 62 mailAddress = ""; 63 provider = ""; 64 host = ""; 65 port = ""; 66 accountUser = ""; 67 accountPassword = ""; 68 smtpHost = ""; 69 } 70 71 75 public int getAccountId() { 76 return accountId; 77 } 78 79 83 public String getUserName() { 84 return userName; 85 } 86 87 91 public String getMailAddress() { 92 return mailAddress; 93 } 94 95 99 public String getProvider() { 100 return provider; 101 } 102 103 107 public String getHost() { 108 return host; 109 } 110 111 115 public String getPort() { 116 return port; 117 } 118 119 123 public String getAccountUser() { 124 return accountUser; 125 } 126 127 131 public String getAccountPassword() { 132 return accountPassword; 133 } 134 135 139 public void setAccountId(int id) { 140 accountId = id; 141 } 142 143 147 public void setUserName(String uname) { 148 userName = uname; 149 } 150 151 155 public void setMailAddress(String address) { 156 mailAddress = address; 157 } 158 159 163 public void setProvider(String prov) { 164 provider = prov; 165 } 166 167 171 public void setHost(String hst) { 172 host = hst; 173 } 174 175 179 public void setPort(String prt) { 180 port = prt; 181 } 182 183 187 public void setAccountUser(String auser) { 188 accountUser = auser; 189 } 190 191 195 public void setAccountPassword(String apwd) { 196 accountPassword = apwd; 197 } 198 199 204 public String getSmtpHost() { 205 return smtpHost; 206 } 207 208 213 public void setSmtpHost(String string) { 214 smtpHost = string; 215 } 216 217 218 public void reset(ActionMapping mapping, HttpServletRequest request) { 219 accountId = 0; 220 userName = ""; 221 mailAddress = ""; 222 provider = ""; 223 host = ""; 224 port = ""; 225 accountUser = ""; 226 accountPassword = ""; 227 smtpHost = ""; 228 } 229 } 230 | Popular Tags |