KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > webapp > jonasadmin > jonasserver > JmxServerForm


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 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  * Initial developer(s): Michel-Ange ANTON
22  * --------------------------------------------------------------------------
23  * $Id: JmxServerForm.java,v 1.4 2005/02/14 15:04:37 danesa Exp $
24  * --------------------------------------------------------------------------
25  */

26
27 package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
28
29 import javax.servlet.http.HttpServletRequest JavaDoc;
30
31 import org.apache.struts.action.ActionErrors;
32 import org.apache.struts.action.ActionForm;
33 import org.apache.struts.action.ActionMapping;
34
35 /**
36  * Form bean for the Jmx server form page.
37  */

38
39 public final class JmxServerForm extends BasicJonasServerForm {
40
41 // ------------------------------------------------------------- Properties Variables
42

43     private String JavaDoc mBeanServerId = null;
44     private String JavaDoc specificationName = null;
45     private String JavaDoc specificationVersion = null;
46     private String JavaDoc specificationVendor = null;
47     private String JavaDoc implementationName = null;
48     private String JavaDoc implementationVersion = null;
49     private String JavaDoc implementationVendor = null;
50
51 // ------------------------------------------------------------- Properties Methods
52

53     public String JavaDoc getSpecificationVersion() {
54         return specificationVersion;
55     }
56
57     public void setSpecificationVersion(String JavaDoc specificationVersion) {
58         this.specificationVersion = specificationVersion;
59     }
60
61     public String JavaDoc getMBeanServerId() {
62         return mBeanServerId;
63     }
64
65     public void setMBeanServerId(String JavaDoc mBeanServerId) {
66         this.mBeanServerId = mBeanServerId;
67     }
68
69     public String JavaDoc getSpecificationName() {
70         return specificationName;
71     }
72
73     public void setSpecificationName(String JavaDoc specificationName) {
74         this.specificationName = specificationName;
75     }
76
77     public String JavaDoc getSpecificationVendor() {
78         return specificationVendor;
79     }
80
81     public void setSpecificationVendor(String JavaDoc specificationVendor) {
82         this.specificationVendor = specificationVendor;
83     }
84
85     public String JavaDoc getImplementationName() {
86         return implementationName;
87     }
88
89     public void setImplementationName(String JavaDoc implementationName) {
90         this.implementationName = implementationName;
91     }
92
93     public String JavaDoc getImplementationVersion() {
94         return implementationVersion;
95     }
96
97     public void setImplementationVersion(String JavaDoc implementationVersion) {
98         this.implementationVersion = implementationVersion;
99     }
100
101     public String JavaDoc getImplementationVendor() {
102         return implementationVendor;
103     }
104
105     public void setImplementationVendor(String JavaDoc implementationVendor) {
106         this.implementationVendor = implementationVendor;
107     }
108
109 // --------------------------------------------------------- Public Methods
110

111     /**
112      * Reset all properties to their default values.
113      *
114      * @param mapping The mapping used to select this instance
115      * @param request The servlet request we are processing
116      */

117     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
118         mBeanServerId = null;
119         specificationName = null;
120         specificationVersion = null;
121         specificationVendor = null;
122         implementationName = null;
123         implementationVersion = null;
124         implementationVendor = null;
125     }
126
127     /**
128      * Validate the properties that have been set from this HTTP request,
129      * and return an <code>ActionErrors</code> object that encapsulates any
130      * validation errors that have been found. If no errors are found, return
131      * <code>null</code> or an <code>ActionErrors</code> object with no
132      * recorded error messages.
133      *
134      * @param mapping The mapping used to select this instance
135      * @param request The servlet request we are processing
136      */

137     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
138         return new ActionErrors();
139     }
140 }
141
Popular Tags