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: * --------------------------------------------------------------------------
022: * $Id: ServletServerForm.java 6584 2005-04-20 11:58:42Z danesa $
023: * --------------------------------------------------------------------------
024: */package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
025:
026: import javax.servlet.http.HttpServletRequest;
027:
028: import org.apache.struts.action.ActionErrors;
029: import org.apache.struts.action.ActionForm;
030: import org.apache.struts.action.ActionMapping;
031:
032: /**
033: * @author Michel-Ange ANTON
034: */
035:
036: public final class ServletServerForm extends ActionForm {
037:
038: // ------------------------------------------------------------- Properties Variables
039:
040: private String serverName = null;
041: private String serverVersion = null;
042: private boolean serverCatalina = false;
043: private String serverCatalinaService = null;
044: private String serverCatalinaEngine = null;
045: private String serverCatalinaDefaultHost = null;
046: private String forwardAfter = null;
047:
048: // ------------------------------------------------------------- Public Methods
049:
050: /**
051: * Reset all properties to their default values.
052: *
053: * @param mapping The mapping used to select this instance
054: * @param request The servlet request we are processing
055: */
056: public void reset(ActionMapping mapping, HttpServletRequest request) {
057: }
058:
059: /**
060: * Validate the properties that have been set from this HTTP request,
061: * and return an <code>ActionErrors</code> object that encapsulates any
062: * validation errors that have been found. If no errors are found, return
063: * <code>null</code> or an <code>ActionErrors</code> object with no
064: * recorded error messages.
065: *
066: * @param mapping The mapping used to select this instance
067: * @param request The servlet request we are processing
068: * @return List of errors
069: */
070: public ActionErrors validate(ActionMapping mapping,
071: HttpServletRequest request) {
072: return new ActionErrors();
073: }
074:
075: // ------------------------------------------------------------- Properties Methods
076:
077: public String getServerName() {
078: return serverName;
079: }
080:
081: public void setServerName(String serverName) {
082: this .serverName = serverName;
083: }
084:
085: public String getServerVersion() {
086: return serverVersion;
087: }
088:
089: public void setServerVersion(String serverVersion) {
090: this .serverVersion = serverVersion;
091: }
092:
093: public String getServerCatalinaService() {
094: return serverCatalinaService;
095: }
096:
097: public void setServerCatalinaService(String serverCatalinaService) {
098: this .serverCatalinaService = serverCatalinaService;
099: }
100:
101: public boolean isServerCatalina() {
102: return serverCatalina;
103: }
104:
105: public void setServerCatalina(boolean serverCatalina) {
106: this .serverCatalina = serverCatalina;
107: }
108:
109: public String getServerCatalinaEngine() {
110: return serverCatalinaEngine;
111: }
112:
113: public void setServerCatalinaEngine(String serverCatalinaEngine) {
114: this .serverCatalinaEngine = serverCatalinaEngine;
115: }
116:
117: public String getServerCatalinaDefaultHost() {
118: return serverCatalinaDefaultHost;
119: }
120:
121: public void setServerCatalinaDefaultHost(
122: String serverCatalinaDefaultHost) {
123: this .serverCatalinaDefaultHost = serverCatalinaDefaultHost;
124: }
125:
126: public String getForwardAfter() {
127: return forwardAfter;
128: }
129:
130: public void setForwardAfter(String forwardAfter) {
131: this.forwardAfter = forwardAfter;
132: }
133:
134: }
|