1 22 package org.jboss.web.tomcat.security.authorization; 23 24 import java.util.HashMap ; 25 import java.util.Map ; 26 27 import org.jboss.security.authorization.Resource; 28 29 31 37 public class WebResource implements Resource 38 { 39 private Map map = new HashMap (); 40 41 44 public WebResource() 45 { 46 } 47 48 54 public WebResource(Map map) 55 { 56 this.map = map; 57 } 58 59 62 public String getLayer() 63 { 64 return Resource.WEB; 65 } 66 67 70 public Map getMap() 71 { 72 return map; 73 } 74 75 79 public void setMap(Map m) 80 { 81 this.map = m; 82 } 83 84 public String toString() 85 { 86 StringBuffer buf = new StringBuffer (); 87 buf.append("[").append(getClass().getName()).append(":contextMap=").append(map).append("]"); 88 return buf.toString(); 89 } 90 } 91 | Popular Tags |