org.cdlib.xtf.test
Class FakeServletConfig

Object
  extended by 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

Field Summary
private  String baseDir
           
private  FakeServletContext context
           
private  String servletName
           
 
Constructor Summary
FakeServletConfig(FakeServletContext context, String baseDir, String servletName)
           
 
Method Summary
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 ServletContext getServletContext()
           
 String getServletName()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private FakeServletContext context

baseDir

private String baseDir

servletName

private String servletName
Constructor Detail

FakeServletConfig

public FakeServletConfig(FakeServletContext context,
                         String baseDir,
                         String servletName)
Method Detail

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