1 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 import javax.servlet.http.HttpServletRequest ; 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 41 public class JndiResourceForm extends ActionForm { 42 43 45 private ArrayList listNames = new ArrayList (); 47 private String registryProtocol = null; 48 50 52 public void reset(ActionMapping mapping, HttpServletRequest request) { 53 listNames = new ArrayList (); 57 } 58 59 61 62 public ArrayList getListNames() { 63 return listNames; 64 } 65 66 public void setListNames(List p_List) { 67 listNames.clear(); 68 listNames = new ArrayList (p_List); 69 Collections.sort(listNames, new BeanComparator()); 70 } 71 80 public String getRegistryProtocol() { 81 return registryProtocol; 82 } 83 84 public void setRegistryProtocol(String protocol) { 85 this.registryProtocol = protocol; 86 } 87 88 97 } | Popular Tags |