Class Restful2ActionMapper
java.lang.Object
org.apache.struts2.dispatcher.mapper.DefaultActionMapper
org.apache.struts2.dispatcher.mapper.Restful2ActionMapper
- All Implemented Interfaces:
ActionMapper
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class org.apache.struts2.dispatcher.mapper.DefaultActionMapper
ACTION_PREFIX, allowDynamicMethodCalls, allowedActionNames, allowedMethodNames, allowedNamespaceNames, allowSlashesInActionNames, alwaysSelectFullNamespace, container, defaultActionName, defaultMethodName, defaultNamespaceName, extensions, METHOD_PREFIX, prefixTrie -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.getMapping(jakarta.servlet.http.HttpServletRequest request, ConfigurationManager configManager) Deprecated, for removal: This API element is subject to removal in a future version.Expose the ActionMapping for the current requestprotected booleanisDelete(jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.protected booleanisGet(jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.protected booleanisPost(jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.protected booleanisPut(jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.voidsetDecoder(UrlDecoder decoder) Deprecated, for removal: This API element is subject to removal in a future version.voidsetIdParameterName(String idParameterName) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.apache.struts2.dispatcher.mapper.DefaultActionMapper
addParameterAction, cleanupActionName, cleanupMethodName, cleanupNamespaceName, dropExtension, extractMethodName, getDefaultExtension, getMappingFromActionName, getUriFromActionMapping, handleDynamicMethod, handleExtension, handleName, handleNamespace, handleParams, handleSpecialParameters, isSlashesInActionNames, lookupExtension, parseActionName, parseNameAndNamespace, setAllowActionPrefix, setAllowDynamicMethodCalls, setAllowedActionNames, setAllowedMethodNames, setAllowedNamespaceNames, setAlwaysSelectFullNamespace, setContainer, setDefaultActionName, setDefaultMethodName, setDefaultNamespaceName, setExtensions, setSlashesInActionNames
-
Field Details
-
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
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:ActionMapperExpose the ActionMapping for the current request- Specified by:
getMappingin interfaceActionMapper- Overrides:
getMappingin classDefaultActionMapper- Parameters:
request- The servlet requestconfigManager- 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
Deprecated, for removal: This API element is subject to removal in a future version. -
setIdParameterName
Deprecated, for removal: This API element is subject to removal in a future version.
-