KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 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: JndiResourceItem.java,v 1.1 2004/11/25 16:02:38 mpeltier Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
27 /*
28 import java.util.ArrayList;
29 import java.util.Collections;
30 import java.util.List;
31 */

32
33 import javax.servlet.http.HttpServletRequest JavaDoc;
34
35 import org.apache.struts.action.ActionMapping;
36 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
37
38 /**
39  * @author Michel-Ange ANTON
40  */

41 public class JndiResourceItem implements NameItem {
42
43 // --------------------------------------------------------- Properties variables
44

45     private String JavaDoc name = null; // not used, could be set to protocol ?
46
private String JavaDoc providerUrl = null;
47     //private ArrayList listNames = new ArrayList();
48
private String JavaDoc protocol = null;
49     private String JavaDoc resourceON = null;
50
51 // --------------------------------------------------------- Public Methods
52

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

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

81     /**
82      * @return Returns the protocol.
83      */

84     public String JavaDoc getProtocol() {
85         return protocol;
86     }
87     /**
88      * @param protocol The protocol to set.
89      */

90     public void setProtocol(String JavaDoc protocol) {
91         this.protocol = protocol;
92     }
93     /**
94      * @return Returns the resourceON.
95      */

96     public String JavaDoc getResourceON() {
97         return resourceON;
98     }
99     /**
100      * @param resourceON The resourceON to set.
101      */

102     public void setResourceON(String JavaDoc resourceON) {
103         this.resourceON = resourceON;
104     }
105 /**
106  * @return Returns the name.
107  */

108 public String JavaDoc getName() {
109     return name;
110 }
111 }
Popular Tags