public interface ActionMapper
ActionMapping
that describes an action invocation for the framework to try.
The ActionMapper is not required to guarantee that the ActionMapping
returned be a real action or otherwise
ensure a valid request.
Accordingly, most ActionMappers do not need to consult the Struts configuration
just to determine if a request should be mapped.
Just as requests can be mapped from HTTP to an action invocation, the opposite is true as well.
However, because HTTP requests (when shown in HTTP responses) must be in String form,
a String is returned rather than an actual request object.
Modifier and Type | Method and Description |
---|---|
ActionMapping |
getMapping(javax.servlet.http.HttpServletRequest request,
ConfigurationManager configManager)
Expose the ActionMapping for the current request
|
ActionMapping |
getMappingFromActionName(String actionName)
Expose the ActionMapping for the specified action name
|
String |
getUriFromActionMapping(ActionMapping mapping)
Convert an ActionMapping into a URI string
|
ActionMapping getMapping(javax.servlet.http.HttpServletRequest request, ConfigurationManager configManager)
request
- The servlet requestconfigManager
- The current configuration managerActionMapping getMappingFromActionName(String actionName)
actionName
- The name of the action that may have other information embedded in itString getUriFromActionMapping(ActionMapping mapping)
mapping
- The action mappingCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.