|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.test.mock.MockServletConfig
public class MockServletConfig
Mock implementation of ServletConfig.
| Constructor Summary | |
|---|---|
MockServletConfig()
Construct a default instance. |
|
MockServletConfig(javax.servlet.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()
|
javax.servlet.ServletContext |
getServletContext()
|
String |
getServletName()
|
void |
setServletContext(javax.servlet.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(javax.servlet.ServletContext context)
Construct an instance associated with the specified servlet context.
context - The associated ServletContext| Method Detail |
|---|
public void addInitParameter(String name,
String value)
Add a servlet initialization parameter.
name - Parameter namevalue - Parameter valuepublic void setServletContext(javax.servlet.ServletContext context)
Set the servlet context for this application.
context - The new servlet contextpublic String getInitParameter(String name)
getInitParameter in interface javax.servlet.ServletConfigpublic Enumeration getInitParameterNames()
getInitParameterNames in interface javax.servlet.ServletConfigpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfigpublic String getServletName()
getServletName in interface javax.servlet.ServletConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||