1 23 package com.sun.enterprise.web.deploy; 24 25 import org.apache.catalina.deploy.SecurityCollection; 26 import com.sun.enterprise.deployment.web.WebResourceCollection; 27 28 import org.apache.catalina.util.RequestUtil; 29 30 import java.util.ArrayList ; 31 import java.util.Collections ; 32 import java.util.Enumeration ; 33 34 39 40 public class SecurityCollectionDecorator extends SecurityCollection { 41 42 private WebResourceCollection decoree; 43 44 public SecurityCollectionDecorator(WebResourceCollection decoree){ 45 this.decoree = decoree; 46 47 Enumeration enumeration = decoree.getUrlPatterns(); 48 while(enumeration.hasMoreElements()){ 49 addPattern( (String )enumeration.nextElement() ); 50 } 51 52 enumeration = decoree.getHttpMethods(); 53 while(enumeration.hasMoreElements()){ 54 addMethod( (String )enumeration.nextElement() ); 55 } 56 } 57 58 59 62 public String getDescription() { 63 return decoree.getDescription(); 64 } 65 66 67 68 71 public String getName() { 72 return decoree.getName(); 73 } 74 75 76 78 } | Popular Tags |