|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.struts.action.ActionServlet com.mockrunner.mock.web.MockActionServlet
public class 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 |
---|
chainConfig, configDigester, convertNull, internal, internalName, log, 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, initChain, initConfigDigester, initInternal, initModuleActions, initModuleConfig, initModuleConfigFactory, initModuleExceptionConfigs, initModuleFormBeans, initModuleForwards, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, parseModuleConfigFile, process, processActionConfigClass, processActionConfigExtension, processExceptionConfigClass, processExceptionExtension, processFormBeanConfigClass, processFormBeanExtension, processForwardConfigClass, processForwardExtension, splitAndResolvePaths |
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
.
getServletConfig
in interface javax.servlet.Servlet
getServletConfig
in class javax.servlet.GenericServlet
ServletConfig
public javax.servlet.ServletContext getServletContext()
ServletContext
.
getServletContext
in interface javax.servlet.ServletConfig
getServletContext
in class javax.servlet.GenericServlet
ServletContext
public void setServletConfig(javax.servlet.ServletConfig config)
ServletConfig
.
config
- the ServletConfig
public 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 |