org.cdlib.xtf.test
Class FakeServletConfig
Object
FakeServletConfig
- All Implemented Interfaces:
- ServletConfig
public class FakeServletConfig
- extends Object
- implements ServletConfig
Used to abuse dynaXML and crossQuery, providing them only as much context
as they need in the testing environment.
- Author:
- Martin Haye
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private FakeServletContext context
baseDir
private String baseDir
servletName
private String servletName
FakeServletConfig
public FakeServletConfig(FakeServletContext context,
String baseDir,
String servletName)
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in interface ServletConfig
getInitParameterNames
public Enumeration getInitParameterNames()
- Specified by:
getInitParameterNames
in interface ServletConfig
getServletContext
public ServletContext getServletContext()
- Specified by:
getServletContext
in interface ServletConfig
getServletName
public String getServletName()
- Specified by:
getServletName
in interface ServletConfig