Class Restful2ActionMapper

java.lang.Object
org.apache.struts2.dispatcher.mapper.DefaultActionMapper
org.apache.struts2.dispatcher.mapper.Restful2ActionMapper
All Implemented Interfaces:
ActionMapper

@Deprecated(forRemoval=true) public class Restful2ActionMapper extends DefaultActionMapper
Deprecated, for removal: This API element is subject to removal in a future version.
since 7.4.0, this legacy mapper predates the Struts REST plugin, which is the maintained way to build REST-style applications with Struts. Scheduled for removal in the next major release.
Extended version of RestfulActionMapper, see documentation for more details Restful2ActionMapper
  • Field Details

    • HTTP_METHOD_PARAM

      public static final String HTTP_METHOD_PARAM
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • Restful2ActionMapper

      public Restful2ActionMapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setDecoder

      public void setDecoder(UrlDecoder decoder)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMapping

      public ActionMapping getMapping(jakarta.servlet.http.HttpServletRequest request, ConfigurationManager configManager)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ActionMapper
      Expose the ActionMapping for the current request
      Specified by:
      getMapping in interface ActionMapper
      Overrides:
      getMapping in class DefaultActionMapper
      Parameters:
      request - The servlet request
      configManager - The current configuration manager
      Returns:
      The appropriate action mapping or null if mapping cannot be determined
    • isGet

      protected boolean isGet(jakarta.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isPost

      protected boolean isPost(jakarta.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isPut

      protected boolean isPut(jakarta.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isDelete

      protected boolean isDelete(jakarta.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIdParameterName

      public String getIdParameterName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setIdParameterName

      public void setIdParameterName(String idParameterName)
      Deprecated, for removal: This API element is subject to removal in a future version.