类 WebRequestMethodsRule
- java.lang.Object
-
- io.microsphere.spring.web.rule.AbstractWebRequestRule<java.lang.String>
-
- io.microsphere.spring.web.rule.WebRequestMethodsRule
-
- 所有已实现的接口:
WebRequestRule
public class WebRequestMethodsRule extends AbstractWebRequestRule<java.lang.String>
WebRequest
Methods
WebRequestRule
A logical disjunction (' || ') request condition that matches a request against a set of
RequestMethods
.- 从以下版本开始:
- 1.0.0
- 作者:
- Rossen Stoyanchev, Mercy
- 另请参阅:
org.springframework.web.servlet.mvc.condition.RequestMethodsRequestCondition
,org.springframework.web.reactive.result.condition.RequestMethodsRequestCondition
-
-
构造器概要
构造器 构造器 说明 WebRequestMethodsRule(java.lang.String method, java.lang.String... others)
WebRequestMethodsRule(org.springframework.web.bind.annotation.RequestMethod... requestMethods)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected java.util.Collection<java.lang.String>
getContent()
Return the discrete items a request condition is composed of.protected java.lang.String
getToStringInfix()
The notation to use when printing discrete items of content.boolean
matches(java.lang.String method)
boolean
matches(org.springframework.web.context.request.NativeWebRequest request)
-
从类继承的方法 io.microsphere.spring.web.rule.AbstractWebRequestRule
equals, hashCode, isEmpty, toString
-
-
-
-
方法详细资料
-
getContent
protected java.util.Collection<java.lang.String> getContent()
从类复制的说明:AbstractWebRequestRule
Return the discrete items a request condition is composed of.For example URL patterns, HTTP request methods, param expressions, etc.
- 指定者:
getContent
在类中AbstractWebRequestRule<java.lang.String>
- 返回:
- a collection of objects (never
null
)
-
getToStringInfix
protected java.lang.String getToStringInfix()
从类复制的说明:AbstractWebRequestRule
The notation to use when printing discrete items of content.For example
" || "
for URL patterns or" && "
for param expressions.- 指定者:
getToStringInfix
在类中AbstractWebRequestRule<java.lang.String>
-
matches
public boolean matches(org.springframework.web.context.request.NativeWebRequest request)
-
matches
public boolean matches(java.lang.String method)
-
-