001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 2004 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: JndiResourceItem.java 9608 2006-09-19 14:18:02Z danesa $
023: * --------------------------------------------------------------------------
024: */package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
025:
026: /*
027: import java.util.ArrayList;
028: import java.util.Collections;
029: import java.util.List;
030: */
031:
032: import javax.servlet.http.HttpServletRequest;
033:
034: import org.apache.struts.action.ActionMapping;
035: import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
036:
037: /**
038: * @author Michel-Ange ANTON
039: */
040: public class JndiResourceItem implements NameItem {
041:
042: // --------------------------------------------------------- Properties variables
043:
044: private String name = null;
045: private String providerUrl = null;
046: private String protocol = null;
047: private String resourceON = null;
048:
049: // --------------------------------------------------------- Public Methods
050:
051: public void reset(ActionMapping mapping, HttpServletRequest request) {
052: providerUrl = null;
053: protocol = null;
054: resourceON = null;
055: name = null;
056: //listNames = new ArrayList();
057: }
058:
059: // --------------------------------------------------------- Properties Methods
060:
061: public String getProviderUrl() {
062: return providerUrl;
063: }
064:
065: public void setProviderUrl(String providerUrl) {
066: this .providerUrl = providerUrl;
067: }
068:
069: /**
070: * @return Returns the protocol.
071: */
072: public String getProtocol() {
073: return protocol;
074: }
075:
076: /**
077: * @param protocol The protocol to set.
078: */
079: public void setProtocol(String protocol) {
080: this .protocol = protocol;
081: }
082:
083: /**
084: * @return Returns the resourceON.
085: */
086: public String getResourceON() {
087: return resourceON;
088: }
089:
090: /**
091: * @param resourceON The resourceON to set.
092: */
093: public void setResourceON(String resourceON) {
094: this .resourceON = resourceON;
095: }
096:
097: /**
098: * @return Returns the name.
099: */
100: public String getName() {
101: return name;
102: }
103: }
|