LoggingJonasForm.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * Initial developer(s): Michel-Ange ANTON
00022  * --------------------------------------------------------------------------
00023  * $Id: LoggingJonasForm.java,v 1.3 2003/06/20 17:15:40 antonma Exp $
00024  * --------------------------------------------------------------------------
00025  */
00026 
00027 package org.objectweb.jonas.webapp.jonasadmin.logging;
00028 
00029 import java.util.ArrayList;
00030 import java.util.List;
00031 
00032 import javax.servlet.http.HttpServletRequest;
00033 
00034 import org.apache.struts.action.ActionErrors;
00035 import org.apache.struts.action.ActionForm;
00036 import org.apache.struts.action.ActionMapping;
00037 
00042 public final class LoggingJonasForm extends ActionForm {
00043 
00044 // ------------------------------------------------------------- Properties Variables
00045 
00046     private ArrayList topicLevelList = new ArrayList();
00047     private String[] topics = null;
00048     private List loggerJonasLevels = null;
00049     private String level = null;
00050     private String topic = null;
00051 
00052 // ------------------------------------------------------------- Public Methods
00053 
00060     public void reset(ActionMapping mapping, HttpServletRequest request) {
00061         level = null;
00062         topic = null;
00063     }
00064 
00075     public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
00076         return new ActionErrors();
00077     }
00078 
00079 // ------------------------------------------------------------- Properties Methods
00080 
00081     public ArrayList getTopicLevelList() {
00082         return topicLevelList;
00083     }
00084 
00085     public void setTopicLevelList(ArrayList topicLevelList) {
00086         this.topicLevelList = topicLevelList;
00087     }
00088 
00089     public String[] getTopics() {
00090         return topics;
00091     }
00092 
00093     public void setTopics(String[] topics) {
00094         this.topics = topics;
00095     }
00096 
00097     public List getLoggerJonasLevels() {
00098         return loggerJonasLevels;
00099     }
00100 
00101     public void setLoggerJonasLevels(List loggerJonasLevels) {
00102         this.loggerJonasLevels = loggerJonasLevels;
00103     }
00104 
00105     public String getLevel() {
00106         return level;
00107     }
00108 
00109     public void setLevel(String level) {
00110         this.level = level;
00111     }
00112 
00113     public String getTopic() {
00114         return topic;
00115     }
00116 
00117     public void setTopic(String topic) {
00118         this.topic = topic;
00119     }
00120 
00121 }

Generated on Tue Feb 15 15:05:28 2005 for JOnAS by  doxygen 1.3.9.1