1 2 3 27 28 29 package org.apache.catalina.deploy; 30 31 import java.util.Hashtable ; 32 import java.io.Serializable ; 33 34 41 42 public class ResourceParams implements Serializable { 43 44 45 47 48 52 private String name = null; 53 54 public String getName() { 55 return (this.name); 56 } 57 58 public void setName(String name) { 59 this.name = name; 60 } 61 62 private Hashtable resourceParams = new Hashtable (); 63 64 public void addParameter(String name, String value) { 65 resourceParams.put(name, value); 66 } 67 68 public Hashtable getParameters() { 69 return resourceParams; 70 } 71 72 74 75 78 public String toString() { 79 80 StringBuffer sb = new StringBuffer ("ResourceParams["); 81 sb.append("name="); 82 sb.append(name); 83 sb.append(", parameters="); 84 sb.append(resourceParams.toString()); 85 sb.append("]"); 86 return (sb.toString()); 87 88 } 89 90 91 93 94 97 protected NamingResources resources = null; 98 99 public NamingResources getNamingResources() { 100 return (this.resources); 101 } 102 103 void setNamingResources(NamingResources resources) { 104 this.resources = resources; 105 } 106 107 108 } 109 | Popular Tags |