public class FakeServletConfig extends Object implements javax.servlet.ServletConfig
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.ServletContext |
context |
protected Map<String,String> |
params |
Constructor and Description |
---|
FakeServletConfig(javax.servlet.ServletContext context) |
FakeServletConfig(javax.servlet.ServletContext context,
Map<String,String> params) |
Modifier and Type | Method and Description |
---|---|
String |
getInitParameter(String name) |
Enumeration<String> |
getInitParameterNames() |
javax.servlet.ServletContext |
getServletContext() |
String |
getServletName() |
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.ServletConfig
public String getInitParameter(String name)
getInitParameter
in interface javax.servlet.ServletConfig
public Enumeration<String> getInitParameterNames()
getInitParameterNames
in interface javax.servlet.ServletConfig
public String getServletName()
getServletName
in interface javax.servlet.ServletConfig