KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > webapp > admin > resources > MailSessionsForm


1 /*
2  * Copyright 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.webapp.admin.resources;
18
19 import javax.servlet.http.HttpServletRequest JavaDoc;
20 import org.apache.struts.action.ActionError;
21 import org.apache.struts.action.ActionErrors;
22 import org.apache.struts.action.ActionForm;
23 import org.apache.struts.action.ActionMapping;
24
25
26 /**
27  * Form bean for the delete mail sessions page.
28  *
29  * @author Amy Roh
30  * @version $Revision: 1.3 $ $Date: 2004/02/27 14:59:04 $
31  * @since 4.1
32  */

33
34 public final class MailSessionsForm extends BaseForm {
35
36
37     // ----------------------------------------------------- Instance Variables
38

39
40     // ------------------------------------------------------------- Properties
41

42
43     /**
44      * The object names of the specified environment entries.
45      */

46     private String JavaDoc mailSessions[] = null;
47
48     public String JavaDoc[] getMailSessions() {
49         return (this.mailSessions);
50     }
51
52     public void setMailSessions(String JavaDoc mailSessions[]) {
53         this.mailSessions = mailSessions;
54     }
55
56     /**
57      * The resource type of this mail session.
58      */

59     private String JavaDoc resourcetype = null;
60     
61     /**
62      * Return the resource type of the mail session this bean refers to.
63      */

64     public String JavaDoc getResourcetype() {
65         return this.resourcetype;
66     }
67
68     /**
69      * Set the resource type of the mail session this bean refers to.
70      */

71     public void setResourcetype(String JavaDoc resourcetype) {
72         this.resourcetype = resourcetype;
73     }
74        
75     /**
76      * The path of this mail session.
77      */

78     private String JavaDoc path = null;
79     
80     /**
81      * Return the path of the mail session this bean refers to.
82      */

83     public String JavaDoc getPath() {
84         return this.path;
85     }
86
87     /**
88      * Set the path of the mail session this bean refers to.
89      */

90     public void setPath(String JavaDoc path) {
91         this.path = path;
92     }
93        
94     /**
95      * The host of this mail session.
96      */

97     private String JavaDoc host = null;
98     
99     /**
100      * Return the host of the mail session this bean refers to.
101      */

102     public String JavaDoc getHost() {
103         return this.host;
104     }
105
106     /**
107      * Set the host of the mail session this bean refers to.
108      */

109     public void setHost(String JavaDoc host) {
110         this.host = host;
111     }
112     
113        
114     /**
115      * The domain of this mail session.
116      */

117     private String JavaDoc domain = null;
118     
119     /**
120      * Return the domain of the mail session this bean refers to.
121      */

122     public String JavaDoc getDomain() {
123         return this.domain;
124     }
125
126     /**
127      * Set the domain of the mail session this bean refers to.
128      */

129     public void setDomain(String JavaDoc domain) {
130         this.domain = domain;
131     }
132
133     // --------------------------------------------------------- Public Methods
134

135
136     /**
137      * Reset all properties to their default values.
138      *
139      * @param mapping The mapping used to select this instance
140      * @param request The servlet request we are processing
141      */

142     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
143
144         super.reset(mapping, request);
145         this.mailSessions = null;
146
147     }
148
149
150 }
151
Popular Tags