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:
023: * --------------------------------------------------------------------------
024: */
025:
026: package org.objectweb.jonas.webapp.jonasadmin.service.jms;
027:
028: import java.util.ArrayList;
029:
030: import javax.servlet.http.HttpServletRequest;
031:
032: import org.apache.struts.action.ActionErrors;
033: import org.apache.struts.action.ActionForm;
034: import org.apache.struts.action.ActionMapping;
035:
036: /**
037: * Form used to present a ConnectionFactory's properties
038: * @author Adriana Danes
039: */
040: public class CfForm extends ActionForm {
041:
042: // --------------------------------------------------------- Properties variables
043:
044: private String name = null;
045: private String mode = null;
046: private ArrayList listUsedByEjb = new ArrayList();
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:
057: public void reset(ActionMapping mapping, HttpServletRequest request) {
058: name = null;
059: mode = null;
060: }
061:
062: /**
063: * Validate the properties that have been set from this HTTP request,
064: * and return an <code>ActionErrors</code> object that encapsulates any
065: * validation errors that have been found. If no errors are found, return
066: * <code>null</code> or an <code>ActionErrors</code> object with no
067: * recorded error messages.
068: *
069: * @param mapping The mapping used to select this instance
070: * @param request The servlet request we are processing
071: */
072: public ActionErrors validate(ActionMapping mapping,
073: HttpServletRequest request) {
074: ActionErrors oErrors = new ActionErrors();
075: return oErrors;
076: }
077:
078: // --------------------------------------------------------- Properties Methods
079:
080: public String getName() {
081: return name;
082: }
083:
084: public void setName(String name) {
085: this .name = name;
086: }
087:
088: public String getMode() {
089: return mode;
090: }
091:
092: public void setMode(String mode) {
093: this .mode = mode;
094: }
095:
096: public ArrayList getListUsedByEjb() {
097: return listUsedByEjb;
098: }
099:
100: public void setListUsedByEjb(ArrayList listUsedByEjb) {
101: this.listUsedByEjb = listUsedByEjb;
102: }
103: }
|