1 15 package org.apache.tapestry.test; 16 17 import java.util.HashMap ; 18 import java.util.Map ; 19 20 import org.apache.hivemind.impl.BaseLocatable; 21 22 28 public class ServletDescriptor extends BaseLocatable 29 { 30 private String _name; 31 private String _className; 32 private Map _inits = new HashMap (); 33 34 public String getClassName() 35 { 36 return _className; 37 } 38 39 public String getName() 40 { 41 return _name; 42 } 43 44 public void setClassName(String string) 45 { 46 _className = string; 47 } 48 49 public void setName(String string) 50 { 51 _name = string; 52 } 53 54 public void addInitParameter(String name, String value) 55 { 56 _inits.put(name, value); 57 } 58 59 public String getInitParameter(String name) 60 { 61 return (String ) _inits.get(name); 62 } 63 64 public Map getInitParameters() 65 { 66 return _inits; 67 } 68 } 69 | Popular Tags |