KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > logging > CatalinaValveForm


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2003-2005 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: CatalinaValveForm.java,v 1.6 2005/04/21 08:58:26 kemlerp Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.logging;
27
28 import javax.servlet.http.HttpServletRequest JavaDoc;
29
30 import org.apache.struts.action.ActionForm;
31 import org.apache.struts.action.ActionMapping;
32
33 /**
34  * @author Michel-Ange ANTON
35  * @author Adriana Danes
36  */

37
38 public class CatalinaValveForm extends ActionForm {
39
40 // ----------------------------------------------------- Properties Variables
41

42     /**
43      *
44      */

45     private String JavaDoc action = "edit";
46     /**
47      *
48      */

49     private boolean save = false;
50     /**
51      *
52      */

53     private String JavaDoc objectName = null;
54     /**
55      *
56      */

57     private String JavaDoc valveName = null;
58     /**
59      *
60      */

61     private String JavaDoc valveType = null;
62     /**
63      * Type of container in which the valve is defined
64      */

65     private String JavaDoc containerType = null;
66     /**
67      * Possible container types
68      */

69     private String JavaDoc[] containerTypes = null;
70     /**
71      * Name of container in which the valve is defined
72      */

73     private String JavaDoc containerName = null;
74     /**
75      * Possible container names
76      */

77     private String JavaDoc[] containerNames = null;
78     /**
79      * ObjectName of container in which the valve is defined
80      * when the container is a Web application (Catalina context)
81      */

82     private String JavaDoc containerObjectName = null;
83
84 // --------------------------------------------------------- Public Methods
85

86     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
87         action = "edit";
88         save = false;
89     }
90
91 // ------------------------------------------------------------- Properties Methods
92

93     public String JavaDoc getAction() {
94         return action;
95     }
96
97     public void setAction(String JavaDoc action) {
98         this.action = action;
99     }
100
101     public String JavaDoc getObjectName() {
102         return this.objectName;
103     }
104
105     public void setObjectName(String JavaDoc objectName) {
106         this.objectName = objectName;
107     }
108
109     public String JavaDoc getValveType() {
110         return this.valveType;
111     }
112
113     public void setValveType(String JavaDoc valveType) {
114         this.valveType = valveType;
115     }
116
117     public boolean isSave() {
118         return save;
119     }
120
121     public void setSave(boolean save) {
122         this.save = save;
123     }
124
125     /**
126      * @return Returns the containerType.
127      */

128     public String JavaDoc getContainerType() {
129         return containerType;
130     }
131
132     /**
133      * @param containerType The containerType to set.
134      */

135     public void setContainerType(String JavaDoc containerType) {
136         this.containerType = containerType;
137     }
138
139     /**
140      * @return Returns the containerName.
141      */

142     public String JavaDoc getContainerName() {
143         return containerName;
144     }
145
146     /**
147      * @param containerName The containerName to set.
148      */

149     public void setContainerName(String JavaDoc containerName) {
150         this.containerName = containerName;
151     }
152
153     /**
154      * @return Returns the containerTypes.
155      */

156     public String JavaDoc[] getContainerTypes() {
157         return containerTypes;
158     }
159
160
161     /**
162      * @param containerTypes The containerTypes to set.
163      */

164     public void setContainerTypes(String JavaDoc[] containerTypes) {
165         this.containerTypes = containerTypes;
166     }
167
168     /**
169      * @return Returns the containerNames.
170      */

171     public String JavaDoc[] getContainerNames() {
172         return containerNames;
173     }
174
175
176     /**
177      * @param containerTypes The containerTypes to set.
178      */

179     public void setContainerNames(String JavaDoc[] containerNames) {
180         this.containerNames = containerNames;
181     }
182
183     /**
184      * @return Returns the containerObjectName.
185      */

186     public String JavaDoc getContainerObjectName() {
187         return containerObjectName;
188     }
189
190
191     /**
192      * @param containerObjectName The containerObjectName to set.
193      */

194     public void setContainerObjectName(String JavaDoc containerObjectName) {
195         this.containerObjectName = containerObjectName;
196     }
197
198
199 }
200
Popular Tags