KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > communication > EMailAccount


1 /*
2  * EMailAccount.java
3  *
4  * Created on 28. Februar 2004, 15:34
5  */

6
7 package org.contineo.communication;
8
9 import javax.servlet.http.HttpServletRequest JavaDoc;
10 import org.apache.struts.action.ActionMapping;
11 import org.apache.struts.validator.ValidatorForm;
12
13 /**
14  *
15  * @author Michael Scholz
16  */

17 public class EMailAccount extends ValidatorForm {
18     
19     private static final long serialVersionUID = 1L;
20     
21     /**
22      * @uml.property name="accountId"
23      */

24     private int accountId;
25     /**
26      * @uml.property name="userName"
27      */

28     private String JavaDoc userName;
29     /**
30      * @uml.property name="mailAddress"
31      */

32     private String JavaDoc mailAddress;
33     /**
34      * @uml.property name="provider"
35      */

36     private String JavaDoc provider;
37     /**
38      * @uml.property name="host"
39      */

40     private String JavaDoc host;
41     /**
42      * @uml.property name="port"
43      */

44     private String JavaDoc port;
45     /**
46      * @uml.property name="accountUser"
47      */

48     private String JavaDoc accountUser;
49     /**
50      * @uml.property name="accountPassword"
51      */

52     private String JavaDoc accountPassword;
53     /**
54      * @uml.property name="smtpHost"
55      */

56     private String JavaDoc smtpHost;
57     
58     /** Creates a new instance of EMailAccount */
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     /**
72      *
73      * @uml.property name="accountId"
74      */

75     public int getAccountId() {
76         return accountId;
77     }
78
79     /**
80      *
81      * @uml.property name="userName"
82      */

83     public String JavaDoc getUserName() {
84         return userName;
85     }
86
87     /**
88      *
89      * @uml.property name="mailAddress"
90      */

91     public String JavaDoc getMailAddress() {
92         return mailAddress;
93     }
94
95     /**
96      *
97      * @uml.property name="provider"
98      */

99     public String JavaDoc getProvider() {
100         return provider;
101     }
102
103     /**
104      *
105      * @uml.property name="host"
106      */

107     public String JavaDoc getHost() {
108         return host;
109     }
110
111     /**
112      *
113      * @uml.property name="port"
114      */

115     public String JavaDoc getPort() {
116         return port;
117     }
118
119     /**
120      *
121      * @uml.property name="accountUser"
122      */

123     public String JavaDoc getAccountUser() {
124         return accountUser;
125     }
126
127     /**
128      *
129      * @uml.property name="accountPassword"
130      */

131     public String JavaDoc getAccountPassword() {
132         return accountPassword;
133     }
134
135     /**
136      *
137      * @uml.property name="accountId"
138      */

139     public void setAccountId(int id) {
140         accountId = id;
141     }
142
143     /**
144      *
145      * @uml.property name="userName"
146      */

147     public void setUserName(String JavaDoc uname) {
148         userName = uname;
149     }
150
151     /**
152      *
153      * @uml.property name="mailAddress"
154      */

155     public void setMailAddress(String JavaDoc address) {
156         mailAddress = address;
157     }
158
159     /**
160      *
161      * @uml.property name="provider"
162      */

163     public void setProvider(String JavaDoc prov) {
164         provider = prov;
165     }
166
167     /**
168      *
169      * @uml.property name="host"
170      */

171     public void setHost(String JavaDoc hst) {
172         host = hst;
173     }
174
175     /**
176      *
177      * @uml.property name="port"
178      */

179     public void setPort(String JavaDoc prt) {
180         port = prt;
181     }
182
183     /**
184      *
185      * @uml.property name="accountUser"
186      */

187     public void setAccountUser(String JavaDoc auser) {
188         accountUser = auser;
189     }
190
191     /**
192      *
193      * @uml.property name="accountPassword"
194      */

195     public void setAccountPassword(String JavaDoc apwd) {
196         accountPassword = apwd;
197     }
198
199     /**
200      * @return
201      *
202      * @uml.property name="smtpHost"
203      */

204     public String JavaDoc getSmtpHost() {
205         return smtpHost;
206     }
207
208     /**
209      * @param string
210      *
211      * @uml.property name="smtpHost"
212      */

213     public void setSmtpHost(String JavaDoc string) {
214         smtpHost = string;
215     }
216
217         
218     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc 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