001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 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: * Initial developer(s): Michel-Ange ANTON
022: * --------------------------------------------------------------------------
023: * $Id: JmxServerForm.java 6312 2005-02-14 15:05:07Z danesa $
024: * --------------------------------------------------------------------------
025: */package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
026:
027: import javax.servlet.http.HttpServletRequest;
028:
029: import org.apache.struts.action.ActionErrors;
030: import org.apache.struts.action.ActionForm;
031: import org.apache.struts.action.ActionMapping;
032:
033: /**
034: * Form bean for the Jmx server form page.
035: */
036:
037: public final class JmxServerForm extends BasicJonasServerForm {
038:
039: // ------------------------------------------------------------- Properties Variables
040:
041: private String mBeanServerId = null;
042: private String specificationName = null;
043: private String specificationVersion = null;
044: private String specificationVendor = null;
045: private String implementationName = null;
046: private String implementationVersion = null;
047: private String implementationVendor = null;
048:
049: // ------------------------------------------------------------- Properties Methods
050:
051: public String getSpecificationVersion() {
052: return specificationVersion;
053: }
054:
055: public void setSpecificationVersion(String specificationVersion) {
056: this .specificationVersion = specificationVersion;
057: }
058:
059: public String getMBeanServerId() {
060: return mBeanServerId;
061: }
062:
063: public void setMBeanServerId(String mBeanServerId) {
064: this .mBeanServerId = mBeanServerId;
065: }
066:
067: public String getSpecificationName() {
068: return specificationName;
069: }
070:
071: public void setSpecificationName(String specificationName) {
072: this .specificationName = specificationName;
073: }
074:
075: public String getSpecificationVendor() {
076: return specificationVendor;
077: }
078:
079: public void setSpecificationVendor(String specificationVendor) {
080: this .specificationVendor = specificationVendor;
081: }
082:
083: public String getImplementationName() {
084: return implementationName;
085: }
086:
087: public void setImplementationName(String implementationName) {
088: this .implementationName = implementationName;
089: }
090:
091: public String getImplementationVersion() {
092: return implementationVersion;
093: }
094:
095: public void setImplementationVersion(String implementationVersion) {
096: this .implementationVersion = implementationVersion;
097: }
098:
099: public String getImplementationVendor() {
100: return implementationVendor;
101: }
102:
103: public void setImplementationVendor(String implementationVendor) {
104: this .implementationVendor = implementationVendor;
105: }
106:
107: // --------------------------------------------------------- Public Methods
108:
109: /**
110: * Reset all properties to their default values.
111: *
112: * @param mapping The mapping used to select this instance
113: * @param request The servlet request we are processing
114: */
115: public void reset(ActionMapping mapping, HttpServletRequest request) {
116: mBeanServerId = null;
117: specificationName = null;
118: specificationVersion = null;
119: specificationVendor = null;
120: implementationName = null;
121: implementationVersion = null;
122: implementationVendor = null;
123: }
124:
125: /**
126: * Validate the properties that have been set from this HTTP request,
127: * and return an <code>ActionErrors</code> object that encapsulates any
128: * validation errors that have been found. If no errors are found, return
129: * <code>null</code> or an <code>ActionErrors</code> object with no
130: * recorded error messages.
131: *
132: * @param mapping The mapping used to select this instance
133: * @param request The servlet request we are processing
134: */
135: public ActionErrors validate(ActionMapping mapping,
136: HttpServletRequest request) {
137: return new ActionErrors();
138: }
139: }
|