1 23 package com.sun.enterprise.web.deploy; 24 25 import com.sun.enterprise.deployment.web.ServletFilter; 26 import com.sun.enterprise.deployment.web.InitializationParameter; 27 28 import org.apache.catalina.deploy.FilterDef; 29 30 import java.util.HashMap ; 31 import java.util.Map ; 32 import java.util.Vector ; 33 import java.io.Serializable ; 34 35 36 41 42 public class FilterDefDecorator extends FilterDef{ 43 44 48 private Map parameters = null; 49 50 private ServletFilter decoree; 51 52 public FilterDefDecorator(ServletFilter decoree){ 53 this.decoree = decoree; 54 Vector initParams = decoree.getInitializationParameters(); 55 InitializationParameter initParam; 56 for (int i=0; i < initParams.size(); i++){ 57 initParam = (InitializationParameter)initParams.get(i); 58 addInitParameter( initParam.getName(),initParam.getValue() ); 59 } 60 } 61 62 63 64 66 67 public String getDescription() { 68 return decoree.getDescription(); 69 } 70 71 public String getDisplayName() { 72 return decoree.getDisplayName(); 73 } 74 75 76 public String getFilterClass() { 77 return decoree.getClassName(); 78 } 79 80 public String getFilterName() { 81 return decoree.getName(); 82 } 83 84 public String getLargeIcon() { 85 return decoree.getLargeIconUri(); 86 } 87 88 89 public String getSmallIcon() { 90 return decoree.getSmallIconUri(); 91 } 92 93 94 95 96 } 97 | Popular Tags |