|
||||||||||
上一个软件包 下一个软件包 | 框架 无框架 |
接口摘要 | |
---|---|
ActionMapper | The ActionMapper interface provides a mapping between HTTP requests and action invocation requests and vice-versa. |
ParameterAction | Defines a parameter action prefix. |
类摘要 | |
---|---|
ActionMapping | Simple class that holds the action mapping information used to invoke a Struts action. |
CompositeActionMapper | A composite action mapper that is capable of delegating to a series of ActionMapper if the former
failed to obtained a valid ActionMapping or uri. |
DefaultActionMapper | Default action mapper implementation, using the standard *. |
PrefixBasedActionMapper | A prefix based action mapper that is capable of delegating to other ActionMapper s based on the request's prefix
It is configured through struts.xml
For example, with the following entries in struts.properties
<constant name="struts.mapper.class" value="org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper"/>
<constant name="struts.mapper.prefixMapping" value="/communities:pseudoRestful,/communityTags:pseudoRestful,/events:pseudoRestful,/mediaList:pseudoRestful,/users:pseudoRestful,/community:struts,/communityTag:struts,/event:struts,/media:struts,/user:struts,:struts"/>
When PrefixBasedActionMapper.getMapping(HttpServletRequest, ConfigurationManager) or
PrefixBasedActionMapper.getUriFromActionMapping(ActionMapping) is invoked,
PrefixBasedActionMapper will check each possible prefix (url prefix terminating just before a /) to find the most specific ActionMapper that returns a mapping when asked to map the request. |
Restful2ActionMapper | Extended version of RestfulActionMapper , see documentation for more details
http://struts.apache.org/2.x/docs/restfulactionmapper.html |
RestfulActionMapper | Simple Restfull Action Mapper to support REST application See docs for more information http://struts.apache.org/2.x/docs/restfulactionmapper.html |
|
||||||||||
上一个软件包 下一个软件包 | 框架 无框架 |