1 17 18 19 package org.apache.catalina.core; 20 21 22 import java.util.Enumeration ; 23 24 import javax.servlet.ServletConfig ; 25 import javax.servlet.ServletContext ; 26 27 28 34 35 public final class StandardWrapperFacade 36 implements ServletConfig { 37 38 39 41 42 45 public StandardWrapperFacade(StandardWrapper config) { 46 47 super(); 48 this.config = (ServletConfig ) config; 49 50 } 51 52 53 55 56 59 private ServletConfig config = null; 60 61 62 64 65 public String getServletName() { 66 return config.getServletName(); 67 } 68 69 70 public ServletContext getServletContext() { 71 ServletContext theContext = config.getServletContext(); 72 if ((theContext != null) && 73 (theContext instanceof ApplicationContext)) 74 theContext = ((ApplicationContext) theContext).getFacade(); 75 return (theContext); 76 } 77 78 79 public String getInitParameter(String name) { 80 return config.getInitParameter(name); 81 } 82 83 84 public Enumeration getInitParameterNames() { 85 return config.getInitParameterNames(); 86 } 87 88 89 } 90 | Popular Tags |