|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.test.mock.MockServletConfig
public class MockServletConfig
Mock implementation of ServletConfig
.
Constructor Summary | |
---|---|
MockServletConfig()
Construct a default instance. |
|
MockServletConfig(ServletContext context)
Construct an instance associated with the specified servlet context. |
Method Summary | |
---|---|
void |
addInitParameter(String name,
String value)
Add a servlet initialization parameter. |
String |
getInitParameter(String name)
|
Enumeration |
getInitParameterNames()
|
ServletContext |
getServletContext()
|
String |
getServletName()
|
void |
setServletContext(ServletContext context)
Set the servlet context for this application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockServletConfig()
Construct a default instance.
public MockServletConfig(ServletContext context)
Construct an instance associated with the specified servlet context.
context
- The associated ServletContextMethod Detail |
---|
public void addInitParameter(String name, String value)
Add a servlet initialization parameter.
name
- Parameter namevalue
- Parameter valuepublic void setServletContext(ServletContext context)
Set the servlet context for this application.
context
- The new servlet contextpublic String getInitParameter(String name)
getInitParameter
in interface ServletConfig
public Enumeration getInitParameterNames()
getInitParameterNames
in interface ServletConfig
public ServletContext getServletContext()
getServletContext
in interface ServletConfig
public String getServletName()
getServletName
in interface ServletConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |