public class MvcMethod extends Object
| 构造器和说明 |
|---|
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod method) |
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod[] methods) |
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod[] methods,
String[] produces) |
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod[] methods,
String[] produces,
String[] consumes) |
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod[] methods,
String[] params,
String[] headers,
String[] produces,
String[] consumes) |
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod method,
String[] produces) |
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod method,
String[] produces,
String[] consumes) |
MvcMethod(String name,
String[] path,
boolean responseBody,
org.springframework.web.bind.annotation.RequestMethod method,
String[] params,
String[] headers,
String[] produces,
String[] consumes) |
MvcMethod(String name,
String[] path,
org.springframework.web.bind.annotation.RequestMethod method) |
MvcMethod(String name,
String[] path,
org.springframework.web.bind.annotation.RequestMethod[] methods) |
| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
getConsumes() |
String[] |
getHeaders() |
org.springframework.web.bind.annotation.RequestMethod[] |
getMethod() |
String |
getName() |
String[] |
getParams() |
String[] |
getPath() |
String[] |
getProduces() |
boolean |
isResponseBody() |
void |
setConsumes(String[] consumes) |
void |
setHeaders(String[] headers) |
void |
setMethod(org.springframework.web.bind.annotation.RequestMethod[] method) |
void |
setParams(String[] params) |
void |
setProduces(String[] produces) |
void |
setResponseBody(boolean responseBody) |
public MvcMethod(String name, String[] path, org.springframework.web.bind.annotation.RequestMethod method)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。method - : 指定请求的method类型, GET、POST、PUT、DELETE等public MvcMethod(String name, String[] path, org.springframework.web.bind.annotation.RequestMethod[] methods)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。methods - : 指定请求的method类型, GET、POST、PUT、DELETE等public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod method)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解method - : 指定请求的method类型, GET、POST、PUT、DELETE等public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod[] methods)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解methods - : 指定请求的method类型, GET、POST、PUT、DELETE等public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod method, String[] produces)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解method - : 指定请求的method类型, GET、POST、PUT、DELETE等produces - : 指定返回的内容类型,仅当request请求头中的(Accept)类型中包含该指定类型才返回public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod[] methods, String[] produces)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解methods - : 指定请求的method类型, GET、POST、PUT、DELETE等produces - : 指定返回的内容类型,仅当request请求头中的(Accept)类型中包含该指定类型才返回public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod method, String[] produces, String[] consumes)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解method - : 指定请求的method类型, GET、POST、PUT、DELETE等produces - : 指定返回的内容类型,仅当request请求头中的(Accept)类型中包含该指定类型才返回consumes - : 指定处理请求的提交内容类型(Content-Type),例如application/json, text/html;public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod[] methods, String[] produces, String[] consumes)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解methods - : 指定请求的method类型, GET、POST、PUT、DELETE等produces - : 指定返回的内容类型,仅当request请求头中的(Accept)类型中包含该指定类型才返回consumes - : 指定处理请求的提交内容类型(Content-Type),例如application/json, text/html;public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod method, String[] params, String[] headers, String[] produces, String[] consumes)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解method - : 指定请求的method类型, GET、POST、PUT、DELETE等params - : 指定request中必须包含某些参数值是,才让该方法处理headers - : 指定request中必须包含某些指定的header值,才能让该方法处理请求produces - : 指定返回的内容类型,仅当request请求头中的(Accept)类型中包含该指定类型才返回consumes - : 指定处理请求的提交内容类型(Content-Type),例如application/json, text/html;public MvcMethod(String name, String[] path, boolean responseBody, org.springframework.web.bind.annotation.RequestMethod[] methods, String[] params, String[] headers, String[] produces, String[] consumes)
name - : 方法名称path - : 指定请求的实际地址, 比如 /action/info之类。responseBody - : 指定是否添加 @ResponseBody 注解methods - : 指定请求的method类型, GET、POST、PUT、DELETE等params - : 指定request中必须包含某些参数值是,才让该方法处理headers - : 指定request中必须包含某些指定的header值,才能让该方法处理请求produces - : 指定返回的内容类型,仅当request请求头中的(Accept)类型中包含该指定类型才返回consumes - : 指定处理请求的提交内容类型(Content-Type),例如application/json, text/html;public org.springframework.web.bind.annotation.RequestMethod[] getMethod()
public void setMethod(org.springframework.web.bind.annotation.RequestMethod[] method)
public String[] getParams()
public void setParams(String[] params)
public String[] getHeaders()
public void setHeaders(String[] headers)
public String[] getConsumes()
public void setConsumes(String[] consumes)
public String[] getProduces()
public void setProduces(String[] produces)
public boolean isResponseBody()
public void setResponseBody(boolean responseBody)
public String getName()
public String[] getPath()
Copyright © 2019. All rights reserved.