KickJava   Java API By Example, From Geeks To Geeks.

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


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  * --------------------------------------------------------------------------
22  * $Id: JonasServerForm.java,v 1.5 2005/02/14 15:04:37 danesa Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
27
28 import javax.servlet.http.HttpServletRequest JavaDoc;
29
30 import org.apache.struts.action.ActionErrors;
31 import org.apache.struts.action.ActionMapping;
32
33 /**
34  * Form bean for the Jonas server form page.
35  * @author Michel-Ange ANTON
36  */

37
38 public final class JonasServerForm extends BasicJonasServerForm {
39
40 // ------------------------------------------------------------- Properties Variables
41

42     /**
43      * The text for the Jonas server version.
44      */

45     private String JavaDoc jonasVersion = null;
46
47     /**
48      * The text for the Jonas server name.
49      */

50     private String JavaDoc jonasName = null;
51
52     /**
53      * The text for the Jonas server ORB.
54      */

55     private String JavaDoc protocols = null;
56
57     /**
58      * The info for the servlet container used.
59      */

60     private String JavaDoc serverServletContainerInfo = null;
61
62 // ------------------------------------------------------------- Properties Methods
63

64     public String JavaDoc getJonasVersion() {
65         return jonasVersion;
66     }
67
68     public void setJonasVersion(String JavaDoc jonasVersion) {
69         this.jonasVersion = jonasVersion;
70     }
71
72     public String JavaDoc getJonasName() {
73         return jonasName;
74     }
75
76     public void setJonasName(String JavaDoc jonasName) {
77         this.jonasName = jonasName;
78     }
79
80     /**
81      * Get the Jonas server ORB.
82      * @return
83      */

84     public String JavaDoc getProtocols() {
85         return protocols;
86     }
87
88     /**
89      * Set the Jonas server ORB.
90      * @param orb
91      */

92     public void setProtocols(String JavaDoc protocols) {
93         this.protocols = protocols;
94     }
95
96     public String JavaDoc getServerServletContainerInfo() {
97         return serverServletContainerInfo;
98     }
99
100     public void setServerServletContainerInfo(String JavaDoc serverServletContainerInfo) {
101         this.serverServletContainerInfo = serverServletContainerInfo;
102     }
103 // ------------------------------------------------------------- Public Methods
104

105     /**
106      * Reset all properties to their default values.
107      *
108      * @param mapping The mapping used to select this instance
109      * @param request The servlet request we are processing
110      */

111     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
112
113         jonasName = null;
114         jonasVersion = null;
115         protocols = null;
116     }
117
118     /**
119      * Validate the properties that have been set from this HTTP request,
120      * and return an <code>ActionErrors</code> object that encapsulates any
121      * validation errors that have been found. If no errors are found, return
122      * <code>null</code> or an <code>ActionErrors</code> object with no
123      * recorded error messages.
124      *
125      * @param mapping The mapping used to select this instance
126      * @param request The servlet request we are processing
127      */

128     public ActionErrors validate(ActionMapping mapping, HttpServletRequest JavaDoc request) {
129         return new ActionErrors();
130     }
131
132 }
133
Popular Tags