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 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 stringvoid
setDecoder
(UrlDecoder decoder)
-
Field Details
-
LOG
protected static final org.apache.logging.log4j.Logger LOG
-
-
Constructor Details
-
RestfulActionMapper
public RestfulActionMapper()
-
-
Method Details
-
setDecoder
-
getMapping
public ActionMapping getMapping(jakarta.servlet.http.HttpServletRequest request, ConfigurationManager configManager) Description copied from interface:ActionMapper
Expose the ActionMapping for the current request- Specified by:
getMapping
in 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:ActionMapper
Expose the ActionMapping for the specified action name- Specified by:
getMappingFromActionName
in 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:ActionMapper
Convert an ActionMapping into a URI string- Specified by:
getUriFromActionMapping
in interfaceActionMapper
- Parameters:
mapping
- The action mapping- Returns:
- The URI string that represents this mapping
-