org.apache.struts2.dispatcher.mapper
类 RestfulActionMapper

java.lang.Object
  继承者 org.apache.struts2.dispatcher.mapper.RestfulActionMapper
所有已实现的接口:
ActionMapper

public class RestfulActionMapper
extends Object
implements ActionMapper

Simple Restfull Action Mapper to support REST application See docs for more information http://struts.apache.org/2.x/docs/restfulactionmapper.html


构造方法摘要
RestfulActionMapper()
           
 
方法摘要
 ActionMapping getMapping(javax.servlet.http.HttpServletRequest request, com.opensymphony.xwork2.config.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
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RestfulActionMapper

public RestfulActionMapper()
方法详细信息

getMapping

public ActionMapping getMapping(javax.servlet.http.HttpServletRequest request,
                                com.opensymphony.xwork2.config.ConfigurationManager configManager)
从接口 ActionMapper 复制的描述
Expose the ActionMapping for the current request

指定者:
接口 ActionMapper 中的 getMapping
参数:
request - The servlet request
configManager - The current configuration manager
返回:
The appropriate action mapping or null if mapping cannot be determined

getMappingFromActionName

public ActionMapping getMappingFromActionName(String actionName)
从接口 ActionMapper 复制的描述
Expose the ActionMapping for the specified action name

指定者:
接口 ActionMapper 中的 getMappingFromActionName
参数:
actionName - The name of the action that may have other information embedded in it
返回:
The appropriate action mapping

getUriFromActionMapping

public String getUriFromActionMapping(ActionMapping mapping)
从接口 ActionMapper 复制的描述
Convert an ActionMapping into a URI string

指定者:
接口 ActionMapper 中的 getUriFromActionMapping
参数:
mapping - The action mapping
返回:
The URI string that represents this mapping