package net.caudium.servlet;

import java.util.Dictionary;
import java.util.Hashtable;
import java.util.Enumeration;
import javax.servlet.ServletContext;

class ServletConfig implements javax.servlet.ServletConfig
{
  ServletContext context;
  Dictionary dic = new Hashtable();
  String name;

  public ServletContext getServletContext()
  {
    return context;
  }

  public String getInitParameter(String name)
  {
    return (String)dic.get(name);
  }

  public Enumeration getInitParameterNames()
  {
    return dic.keys();
  }

  ServletConfig(ServletContext ctx, String n)
  {
    context = ctx;
    name = n;
  }

  // 2.2 stuff follows

  public String getServletName()
  {
    return name;
  }

}
