KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > webapp > admin > valve > ValvesForm


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

31
32 public class ValvesForm extends ActionForm {
33
34
35     // ------------------------------------------------------------- Properties
36

37
38     /**
39      * The object names of the valves to be deleted.
40      */

41     private String JavaDoc valves[] = new String JavaDoc[0];
42
43     public String JavaDoc[] getValves() {
44         return (this.valves);
45     }
46
47     public void setValves(String JavaDoc valves[]) {
48         this.valves = valves;
49     }
50
51      /*
52       * The parent object name of the valve to be deleted.
53       */

54    
55     private String JavaDoc parentObjectName = null;
56     
57     public String JavaDoc getParentObjectName() {
58         return (this.parentObjectName);
59     }
60     
61     public void setParentObjectName(String JavaDoc parentObjectName) {
62         this.parentObjectName = parentObjectName;
63     }
64     
65     // --------------------------------------------------------- Public Methods
66

67
68     /**
69      * Reset all properties to their default values.
70      *
71      * @param mapping The mapping used to select this instance
72      * @param request The servlet request we are processing
73      */

74     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
75
76         this.valves = new String JavaDoc[0];
77         this.parentObjectName = null;
78     }
79         
80
81 }
82
Popular Tags