KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 2003-2004 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: JndiResourceForm.java,v 1.3 2004/11/25 14:31:00 danesa Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
27
28 import java.util.ArrayList JavaDoc;
29 import java.util.Collections JavaDoc;
30 import java.util.List JavaDoc;
31
32 import javax.servlet.http.HttpServletRequest JavaDoc;
33
34 import org.apache.struts.action.ActionForm;
35 import org.apache.struts.action.ActionMapping;
36 import org.objectweb.jonas.webapp.jonasadmin.common.BeanComparator;
37
38 /**
39  * @author Michel-Ange ANTON
40  */

41 public class JndiResourceForm extends ActionForm {
42
43 // --------------------------------------------------------- Properties variables
44

45     //private String providerUrl = null;
46
private ArrayList JavaDoc listNames = new ArrayList JavaDoc();
47     private String JavaDoc registryProtocol = null;
48     //private String resourceON = null;
49

50 // --------------------------------------------------------- Public Methods
51

52     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
53         //providerUrl = null;
54
//protocol = null;
55
//resourceON = null;
56
listNames = new ArrayList JavaDoc();
57     }
58
59 // --------------------------------------------------------- Properties Methods
60

61
62     public ArrayList JavaDoc getListNames() {
63         return listNames;
64     }
65
66     public void setListNames(List JavaDoc p_List) {
67         listNames.clear();
68         listNames = new ArrayList JavaDoc(p_List);
69         Collections.sort(listNames, new BeanComparator());
70     }
71     /*
72     public String getProviderUrl() {
73         return providerUrl;
74     }
75
76     public void setProviderUrl(String providerUrl) {
77         this.providerUrl = providerUrl;
78     }
79     */

80     public String JavaDoc getRegistryProtocol() {
81         return registryProtocol;
82     }
83     
84     public void setRegistryProtocol(String JavaDoc protocol) {
85         this.registryProtocol = protocol;
86     }
87     
88     /*
89     public String getResourceON() {
90         return resourceON;
91     }
92     
93     public void setResourceON(String resourceON) {
94         this.resourceON = resourceON;
95     }
96     */

97 }
Popular Tags