1 26 27 package org.objectweb.jonas_web.deployment.api; 28 29 import java.util.ArrayList ; 30 import java.util.Iterator ; 31 import java.util.List ; 32 33 import org.objectweb.jonas_lib.deployment.api.SecurityRoleRefDesc; 34 import org.objectweb.jonas_lib.deployment.xml.SecurityRoleRef; 35 36 import org.objectweb.jonas_web.deployment.xml.Servlet; 37 42 43 public class ServletDesc { 44 45 48 private Servlet servlet = null; 49 50 53 private List securityRoleRefDescList = null; 54 55 56 57 61 public ServletDesc(Servlet servlet) { 62 this.servlet = servlet; 63 securityRoleRefDescList = new ArrayList (); 64 for (Iterator it = servlet.getSecurityRoleRefList().iterator(); it.hasNext();) { 65 SecurityRoleRef securityRoleRef = (SecurityRoleRef) it.next(); 66 SecurityRoleRefDesc securityRoleRefDesc = 67 new SecurityRoleRefDesc(getServletName(), securityRoleRef, false); 68 securityRoleRefDescList.add(securityRoleRefDesc); 69 } 70 71 } 72 73 76 public String getServletName() { 77 return servlet.getServletName(); 78 } 79 80 83 public String getServletClass() { 84 return servlet.getServletClass(); 85 } 86 87 88 92 public List getSecurityRoleRefList() { 93 return securityRoleRefDescList; 94 } 95 96 } 97 | Popular Tags |