|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
com.mockrunner.mock.web.MockActionServlet
This mock version of the Struts ActionServlet
is necessary, because some Struts methods use it to
get the ServletContext and other things.
| Field Summary |
| Fields inherited from class org.apache.struts.action.ActionServlet |
configDigester, convertNull, dataSources, internal, internalName, log, processor, registrations, servletMapping, servletName |
| Constructor Summary | |
MockActionServlet()
|
|
| Method Summary | |
javax.servlet.ServletConfig |
getServletConfig()
Returns the ServletConfig. |
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext. |
void |
setServletConfig(javax.servlet.ServletConfig config)
Set the ServletConfig. |
void |
setServletContext(javax.servlet.ServletContext context)
Set the ServletContext. |
| Methods inherited from class org.apache.struts.action.ActionServlet |
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, init, initConfigDigester, initInternal, initModuleConfig, initModuleConfigFactory, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, process |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MockActionServlet()
| Method Detail |
public javax.servlet.ServletConfig getServletConfig()
ServletConfig.
ServletConfigpublic javax.servlet.ServletContext getServletContext()
ServletContext.
ServletContextpublic void setServletConfig(javax.servlet.ServletConfig config)
ServletConfig.
config - the ServletConfigpublic void setServletContext(javax.servlet.ServletContext context)
ServletContext.
context - the ServletContext
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||