001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 2003-2005 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: CatalinaValveForm.java 6598 2005-04-21 08:58:26Z kemlerp $
023: * --------------------------------------------------------------------------
024: */package org.objectweb.jonas.webapp.jonasadmin.logging;
025:
026: import javax.servlet.http.HttpServletRequest;
027:
028: import org.apache.struts.action.ActionForm;
029: import org.apache.struts.action.ActionMapping;
030:
031: /**
032: * @author Michel-Ange ANTON
033: * @author Adriana Danes
034: */
035:
036: public class CatalinaValveForm extends ActionForm {
037:
038: // ----------------------------------------------------- Properties Variables
039:
040: /**
041: *
042: */
043: private String action = "edit";
044: /**
045: *
046: */
047: private boolean save = false;
048: /**
049: *
050: */
051: private String objectName = null;
052: /**
053: *
054: */
055: private String valveName = null;
056: /**
057: *
058: */
059: private String valveType = null;
060: /**
061: * Type of container in which the valve is defined
062: */
063: private String containerType = null;
064: /**
065: * Possible container types
066: */
067: private String[] containerTypes = null;
068: /**
069: * Name of container in which the valve is defined
070: */
071: private String containerName = null;
072: /**
073: * Possible container names
074: */
075: private String[] containerNames = null;
076: /**
077: * ObjectName of container in which the valve is defined
078: * when the container is a Web application (Catalina context)
079: */
080: private String containerObjectName = null;
081:
082: // --------------------------------------------------------- Public Methods
083:
084: public void reset(ActionMapping mapping, HttpServletRequest request) {
085: action = "edit";
086: save = false;
087: }
088:
089: // ------------------------------------------------------------- Properties Methods
090:
091: public String getAction() {
092: return action;
093: }
094:
095: public void setAction(String action) {
096: this .action = action;
097: }
098:
099: public String getObjectName() {
100: return this .objectName;
101: }
102:
103: public void setObjectName(String objectName) {
104: this .objectName = objectName;
105: }
106:
107: public String getValveType() {
108: return this .valveType;
109: }
110:
111: public void setValveType(String valveType) {
112: this .valveType = valveType;
113: }
114:
115: public boolean isSave() {
116: return save;
117: }
118:
119: public void setSave(boolean save) {
120: this .save = save;
121: }
122:
123: /**
124: * @return Returns the containerType.
125: */
126: public String getContainerType() {
127: return containerType;
128: }
129:
130: /**
131: * @param containerType The containerType to set.
132: */
133: public void setContainerType(String containerType) {
134: this .containerType = containerType;
135: }
136:
137: /**
138: * @return Returns the containerName.
139: */
140: public String getContainerName() {
141: return containerName;
142: }
143:
144: /**
145: * @param containerName The containerName to set.
146: */
147: public void setContainerName(String containerName) {
148: this .containerName = containerName;
149: }
150:
151: /**
152: * @return Returns the containerTypes.
153: */
154: public String[] getContainerTypes() {
155: return containerTypes;
156: }
157:
158: /**
159: * @param containerTypes The containerTypes to set.
160: */
161: public void setContainerTypes(String[] containerTypes) {
162: this .containerTypes = containerTypes;
163: }
164:
165: /**
166: * @return Returns the containerNames.
167: */
168: public String[] getContainerNames() {
169: return containerNames;
170: }
171:
172: /**
173: * @param containerTypes The containerTypes to set.
174: */
175: public void setContainerNames(String[] containerNames) {
176: this .containerNames = containerNames;
177: }
178:
179: /**
180: * @return Returns the containerObjectName.
181: */
182: public String getContainerObjectName() {
183: return containerObjectName;
184: }
185:
186: /**
187: * @param containerObjectName The containerObjectName to set.
188: */
189: public void setContainerObjectName(String containerObjectName) {
190: this.containerObjectName = containerObjectName;
191: }
192:
193: }
|