Class RestfulActionMapper
java.lang.Object
org.apache.struts2.dispatcher.mapper.RestfulActionMapper
- All Implemented Interfaces:
- ActionMapper
Simple Restfull Action Mapper to support REST application
 See docs for more information
 RestfulActionMapper
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 stringvoidsetDecoder(UrlDecoder decoder) 
- 
Field Details- 
LOGprotected static final org.apache.logging.log4j.Logger LOG
 
- 
- 
Constructor Details- 
RestfulActionMapperpublic RestfulActionMapper()
 
- 
- 
Method Details- 
setDecoder
- 
getMappingpublic ActionMapping getMapping(jakarta.servlet.http.HttpServletRequest request, ConfigurationManager configManager) Description copied from interface:ActionMapperExpose the ActionMapping for the current request- Specified by:
- getMappingin interface- ActionMapper
- Parameters:
- request- The servlet request
- configManager- The current configuration manager
- Returns:
- The appropriate action mapping or null if mapping cannot be determined
 
- 
getMappingFromActionNameDescription copied from interface:ActionMapperExpose the ActionMapping for the specified action name- Specified by:
- getMappingFromActionNamein interface- ActionMapper
- Parameters:
- actionName- The name of the action that may have other information embedded in it
- Returns:
- The appropriate action mapping
 
- 
getUriFromActionMappingDescription copied from interface:ActionMapperConvert an ActionMapping into a URI string- Specified by:
- getUriFromActionMappingin interface- ActionMapper
- Parameters:
- mapping- The action mapping
- Returns:
- The URI string that represents this mapping
 
 
-