|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.web.MockServletConfig
public class MockServletConfig
Mock implementation of ServletConfig
.
Constructor Summary | |
---|---|
MockServletConfig()
|
Method Summary | |
---|---|
void |
clearInitParameters()
Clears the init parameters. |
java.lang.String |
getInitParameter(java.lang.String name)
|
java.util.Enumeration |
getInitParameterNames()
|
javax.servlet.ServletContext |
getServletContext()
|
java.lang.String |
getServletName()
|
void |
setInitParameter(java.lang.String name,
java.lang.String value)
Sets an init parameter. |
void |
setInitParameters(java.util.Map parameters)
Sets several init parameters. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Sets the ServletContext . |
void |
setServletName(java.lang.String servletName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockServletConfig()
Method Detail |
---|
public java.lang.String getServletName()
getServletName
in interface javax.servlet.ServletConfig
public void setServletName(java.lang.String servletName)
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.ServletConfig
public void setServletContext(javax.servlet.ServletContext servletContext)
ServletContext
.
servletContext
- the ServletContext
public void clearInitParameters()
public java.lang.String getInitParameter(java.lang.String name)
getInitParameter
in interface javax.servlet.ServletConfig
public void setInitParameter(java.lang.String name, java.lang.String value)
name
- the namevalue
- the valuepublic void setInitParameters(java.util.Map parameters)
parameters
- the parameter mappublic java.util.Enumeration getInitParameterNames()
getInitParameterNames
in interface javax.servlet.ServletConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |