|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.config.BaseConfig
org.apache.struts.config.ActionConfig
org.apache.struts.action.ActionMapping
com.mockrunner.mock.web.MockActionMapping
public class MockActionMapping
Mock implementation of ActionMapping.
| Field Summary |
|---|
| Fields inherited from class org.apache.struts.config.ActionConfig |
|---|
actionId, attribute, cancellable, catalog, command, exceptions, extensionProcessed, forward, include, inherit, input, moduleConfig, multipartClass, name, parameter, path, prefix, roleNames, roles, scope, suffix, type, unknown, validate |
| Fields inherited from class org.apache.struts.config.BaseConfig |
|---|
configured |
| Constructor Summary | |
|---|---|
MockActionMapping()
|
|
| Method Summary | |
|---|---|
void |
addForward(java.lang.String forwardName,
java.lang.String forwardPath)
Adds an ActionForward
with the specified name and path. |
void |
clearForwards()
Clears all specified forwards. |
org.apache.struts.action.ActionForward |
findForward(java.lang.String name)
Always return a valid ActionForward
since we do not care if it exists in the
struts-config. |
java.lang.String[] |
findForwards()
Returns all forward names (set using addForward(java.lang.String, java.lang.String)
or setupForwards(java.lang.String[])). |
org.apache.struts.action.ActionForward |
getInputForward()
Always return a valid ActionForward. |
void |
setupForwards(java.lang.String[] forwardNames)
Sets multiple ActionForward objects
with equal name and path. |
| Methods inherited from class org.apache.struts.config.ActionConfig |
|---|
addExceptionConfig, addForwardConfig, checkCircularInheritance, findException, findExceptionConfig, findExceptionConfigs, findForwardConfig, findForwardConfigs, freeze, getActionId, getAttribute, getCancellable, getCatalog, getCommand, getExtends, getForward, getInclude, getInput, getModuleConfig, getMultipartClass, getName, getParameter, getPath, getPrefix, getRoleNames, getRoles, getScope, getSuffix, getType, getUnknown, getValidate, inheritExceptionHandlers, inheritForwards, inheritFrom, isExtensionProcessed, processExtends, removeExceptionConfig, removeForwardConfig, setActionId, setAttribute, setCancellable, setCatalog, setCommand, setExtends, setForward, setInclude, setInput, setModuleConfig, setMultipartClass, setName, setParameter, setPath, setPrefix, setRoles, setScope, setSuffix, setType, setUnknown, setValidate, toString |
| Methods inherited from class org.apache.struts.config.BaseConfig |
|---|
copyProperties, getProperties, getProperty, inheritProperties, setProperties, setProperty, throwIfConfigured |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MockActionMapping()
| Method Detail |
|---|
public void clearForwards()
public org.apache.struts.action.ActionForward findForward(java.lang.String name)
ActionForward
since we do not care if it exists in the
struts-config. If an ActionForward
was defined using addForward(java.lang.String, java.lang.String),
this ActionForward will be returned.
Otherwise a new ActionForward
(with equal name and path) will be returned.
findForward in class org.apache.struts.action.ActionMappingname - the name
ActionForward
public void addForward(java.lang.String forwardName,
java.lang.String forwardPath)
ActionForward
with the specified name and path.
forwardName - the name of the forwardforwardPath - the path of the forwardpublic void setupForwards(java.lang.String[] forwardNames)
ActionForward objects
with equal name and path.
forwardNames - the forward namespublic java.lang.String[] findForwards()
addForward(java.lang.String, java.lang.String)
or setupForwards(java.lang.String[])).
findForwards in class org.apache.struts.action.ActionMappingpublic org.apache.struts.action.ActionForward getInputForward()
ActionForward.
The input parameter of this mapping will be used
as the name and path for the ActionForward.
getInputForward in class org.apache.struts.action.ActionMapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||