Class CompositeActionMapper
java.lang.Object
org.apache.struts2.dispatcher.mapper.CompositeActionMapper
- All Implemented Interfaces:
ActionMapper
A composite action mapper that is capable of delegating to a series of
ActionMapper if the former
failed to obtained a valid ActionMapping or uri.
More details: http://struts.apache.org/docs/actionmapper.html- Version:
- $Date$ $Id$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMapping(jakarta.servlet.http.HttpServletRequest request, ConfigurationManager configManager) Expose the ActionMapping for the current requestgetMappingFromActionName(String actionName) Expose the ActionMapping for the specified action namegetUriFromActionMapping(ActionMapping mapping) Convert an ActionMapping into a URI string
-
Field Details
-
actionMappers
-
-
Constructor Details
-
CompositeActionMapper
-
-
Method Details
-
getMapping
public ActionMapping getMapping(jakarta.servlet.http.HttpServletRequest request, ConfigurationManager configManager) Description copied from interface:ActionMapperExpose the ActionMapping for the current request- Specified by:
getMappingin interfaceActionMapper- Parameters:
request- The servlet requestconfigManager- The current configuration manager- Returns:
- The appropriate action mapping or null if mapping cannot be determined
-
getMappingFromActionName
Description copied from interface:ActionMapperExpose the ActionMapping for the specified action name- Specified by:
getMappingFromActionNamein interfaceActionMapper- Parameters:
actionName- The name of the action that may have other information embedded in it- Returns:
- The appropriate action mapping
-
getUriFromActionMapping
Description copied from interface:ActionMapperConvert an ActionMapping into a URI string- Specified by:
getUriFromActionMappingin interfaceActionMapper- Parameters:
mapping- The action mapping- Returns:
- The URI string that represents this mapping
-