KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > webapp > admin > host > AliasesForm


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.host;
18
19 import javax.servlet.http.HttpServletRequest JavaDoc;
20 import org.apache.struts.action.ActionForm;
21 import org.apache.struts.action.ActionMapping;
22
23
24 /**
25  * Form bean for deleting aliases.
26  *
27  * @author Manveen Kaur
28  * @version $Revision: 1.2 $ $Date: 2004/02/27 14:59:03 $
29  */

30
31 public class AliasesForm extends ActionForm {
32
33
34     // ------------------------------------------------------------- Properties
35

36
37     /**
38      * The object names of the aliases to be deleted.
39      */

40     private String JavaDoc aliases[] = new String JavaDoc[0];
41
42     public String JavaDoc[] getAliases() {
43         return (this.aliases);
44     }
45
46     public void setAliases(String JavaDoc aliases[]) {
47         this.aliases = aliases;
48     }
49
50     /**
51      * The text for the hostName.
52      */

53     private String JavaDoc hostName = null;
54
55     /**
56      * Return the host name.
57      */

58     public String JavaDoc getHostName() {
59         
60         return this.hostName;
61         
62     }
63     
64     /**
65      * Set the host name.
66      */

67     public void setHostName(String JavaDoc hostName) {
68         
69         this.hostName = hostName;
70         
71     }
72     
73     // --------------------------------------------------------- Public Methods
74

75
76     /**
77      * Reset all properties to their default values.
78      *
79      * @param mapping The mapping used to select this instance
80      * @param request The servlet request we are processing
81      */

82     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
83
84         this.aliases = new String JavaDoc[0];
85         this.hostName = null;
86     }
87         
88 }
89
Popular Tags