1 22 package org.jboss.metadata.web; 23 24 import java.util.Collection ; 25 import java.util.HashMap ; 26 27 import org.jboss.logging.Logger; 28 import org.jboss.metadata.NameValuePair; 29 30 37 public class Filter 38 { 39 private static final Logger log = Logger.getLogger(Filter.class); 40 41 protected String name; 42 protected String clazz; 43 protected HashMap initParams = new HashMap (); 44 45 public String getName() 46 { 47 return name; 48 } 49 50 public void setName(String name) 51 { 52 this.name = name; 53 } 54 55 public String getFilterClass() 56 { 57 return clazz; 58 } 59 60 public void setFilterClass(String clazz) 61 { 62 this.clazz = clazz; 63 } 64 65 public Collection getInitParams() 66 { 67 return initParams.values(); 68 } 69 70 public void addInitParam(NameValuePair param) 71 { 72 initParams.put(param.getName(), param); 73 } 74 75 public String toString() 76 { 77 StringBuffer sb = new StringBuffer (100); 78 return sb.toString(); 79 } 80 } 81 | Popular Tags |