1 28 29 package com.caucho.jsp; 30 31 import javax.servlet.ServletConfig ; 32 import javax.servlet.ServletContext ; 33 import java.util.Enumeration ; 34 import java.util.Hashtable ; 35 36 class JspServletConfig implements ServletConfig { 37 private Hashtable init; 38 private ServletContext context; 39 private String name; 40 41 JspServletConfig(ServletContext context, Hashtable init, String name) 42 { 43 if (init == null) 44 init = new Hashtable (); 45 this.init = init; 46 this.context = context; 47 this.name = name; 48 } 49 50 public String getServletName() 51 { 52 return this.name; 53 } 54 55 public ServletContext getServletContext() 56 { 57 return context; 58 } 59 60 public String getInitParameter(String name) 61 { 62 return (String ) init.get(name); 63 } 64 65 public Enumeration getInitParameterNames() 66 { 67 return init.keys(); 68 } 69 } 70 | Popular Tags |