1 16 package org.apache.cocoon.components.jsp; 17 18 import java.util.Enumeration ; 19 20 import javax.servlet.ServletConfig ; 21 import javax.servlet.ServletContext ; 22 23 26 public final class JSPEngineServletConfig implements ServletConfig { 27 28 private final ServletContext context; 29 private final String name; 30 31 public JSPEngineServletConfig(ServletContext context, String name) { 32 this.context = context; 33 this.name = name; 34 } 35 public String getServletName() { return name; } 36 public Enumeration getInitParameterNames() { return context.getInitParameterNames(); } 37 public ServletContext getServletContext() { return context; } 38 public String getInitParameter(String name) { return context.getInitParameter(name); } 39 40 } 41 | Popular Tags |