JndiResourceItem.java

00001 
00026 package org.objectweb.jonas.webapp.jonasadmin.jonasserver;
00027 /*
00028 import java.util.ArrayList;
00029 import java.util.Collections;
00030 import java.util.List;
00031 */
00032 
00033 import javax.servlet.http.HttpServletRequest;
00034 
00035 import org.apache.struts.action.ActionMapping;
00036 import org.objectweb.jonas.webapp.jonasadmin.common.NameItem;
00037 
00041 public class JndiResourceItem implements NameItem {
00042 
00043 // --------------------------------------------------------- Properties variables
00044 
00045         private String name = null; // not used, could be set to protocol ?
00046     private String providerUrl = null;
00047     //private ArrayList listNames = new ArrayList();
00048     private String protocol = null;
00049     private String resourceON = null;
00050 
00051 // --------------------------------------------------------- Public Methods
00052 
00053     public void reset(ActionMapping mapping, HttpServletRequest request) {
00054         providerUrl = null;
00055         protocol = null;
00056         resourceON = null;
00057         name = null;
00058         //listNames = new ArrayList();
00059     }
00060 
00061 // --------------------------------------------------------- Properties Methods
00062 
00063     public String getProviderUrl() {
00064         return providerUrl;
00065     }
00066 
00067     public void setProviderUrl(String providerUrl) {
00068         this.providerUrl = providerUrl;
00069     }
00070 /*
00071     public ArrayList getListNames() {
00072         return listNames;
00073     }
00074 
00075     public void setListNames(List p_List) {
00076         listNames.clear();
00077         listNames = new ArrayList(p_List);
00078         Collections.sort(listNames, new BeanComparator());
00079     }
00080 */
00084         public String getProtocol() {
00085                 return protocol;
00086         }
00090         public void setProtocol(String protocol) {
00091                 this.protocol = protocol;
00092         }
00096         public String getResourceON() {
00097                 return resourceON;
00098         }
00102         public void setResourceON(String resourceON) {
00103                 this.resourceON = resourceON;
00104         }
00108 public String getName() {
00109         return name;
00110 }
00111 }

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