JndiResourceForm.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 import javax.servlet.http.HttpServletRequest;
00033 
00034 import org.apache.struts.action.ActionForm;
00035 import org.apache.struts.action.ActionMapping;
00036 import org.objectweb.jonas.webapp.jonasadmin.common.BeanComparator;
00037 
00041 public class JndiResourceForm extends ActionForm {
00042 
00043 // --------------------------------------------------------- Properties variables
00044 
00045     //private String providerUrl = null;
00046     private ArrayList listNames = new ArrayList();
00047     private String registryProtocol = null;
00048     //private String resourceON = null;
00049 
00050 // --------------------------------------------------------- Public Methods
00051 
00052     public void reset(ActionMapping mapping, HttpServletRequest request) {
00053         //providerUrl = null;
00054         //protocol = null;
00055         //resourceON = null;
00056         listNames = new ArrayList();
00057     }
00058 
00059 // --------------------------------------------------------- Properties Methods
00060 
00061 
00062     public ArrayList getListNames() {
00063         return listNames;
00064     }
00065 
00066     public void setListNames(List p_List) {
00067         listNames.clear();
00068         listNames = new ArrayList(p_List);
00069         Collections.sort(listNames, new BeanComparator());
00070     }
00071     /*
00072     public String getProviderUrl() {
00073         return providerUrl;
00074     }
00075 
00076     public void setProviderUrl(String providerUrl) {
00077         this.providerUrl = providerUrl;
00078     }
00079     */
00080         public String getRegistryProtocol() {
00081                 return registryProtocol;
00082         }
00083         
00084         public void setRegistryProtocol(String protocol) {
00085                 this.registryProtocol = protocol;
00086         }
00087         
00088         /*
00089         public String getResourceON() {
00090                 return resourceON;
00091         }
00092         
00093         public void setResourceON(String resourceON) {
00094                 this.resourceON = resourceON;
00095         }
00096         */
00097 }

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