1 16 package org.directwebremoting.spring; 17 18 import java.util.List ; 19 import java.util.Properties ; 20 import java.util.ArrayList ; 21 22 import org.directwebremoting.AjaxFilter; 23 import org.directwebremoting.extend.Creator; 24 25 48 public class CreatorConfig extends AbstractConfig 49 { 50 54 public String getCreatorType() 55 { 56 return creatorType; 57 } 58 59 63 public void setCreatorType(String creatorType) 64 { 65 this.creatorType = creatorType; 66 } 67 68 72 public Creator getCreator() 73 { 74 return creator; 75 } 76 77 81 public void setCreator(Creator creator) 82 { 83 this.creator = creator; 84 } 85 86 91 public Properties getAuth() 92 { 93 return auth; 94 } 95 96 101 public void setAuth(Properties auth) 102 { 103 this.auth = auth; 104 } 105 106 112 public List getFilters() 113 { 114 return filters; 115 } 116 117 123 public void setFilters(List filters) 124 { 125 this.filters = filters; 126 } 127 128 134 public void addAuth(String method, String role) 135 { 136 auth.setProperty(method, role); 137 } 138 139 144 public void addFilter(AjaxFilter filter) 145 { 146 filters.add(filter); 147 } 148 149 152 private String creatorType; 153 154 157 private Creator creator; 158 159 162 private Properties auth = new Properties (); 163 164 167 private List filters = new ArrayList (); 168 } 169 | Popular Tags |