Package io.microsphere.spring.web.rule
Class WebRequestMethodsRule
java.lang.Object
io.microsphere.spring.web.rule.AbstractWebRequestRule<String>
io.microsphere.spring.web.rule.WebRequestMethodsRule
- All Implemented Interfaces:
WebRequestRule
WebRequest
Methods
WebRequestRule
A logical disjunction (' || ') request condition that matches a request
against a set of RequestMethods
.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev, Mercy
- See Also:
-
org.springframework.web.servlet.mvc.condition.RequestMethodsRequestCondition
org.springframework.web.reactive.result.condition.RequestMethodsRequestCondition
-
Constructor Summary
ConstructorsConstructorDescriptionWebRequestMethodsRule
(String method, String... others) WebRequestMethodsRule
(org.springframework.web.bind.annotation.RequestMethod... requestMethods) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>
Return the discrete items a request condition is composed of.protected String
The notation to use when printing discrete items of content.boolean
boolean
matches
(org.springframework.web.context.request.NativeWebRequest request) Methods inherited from class io.microsphere.spring.web.rule.AbstractWebRequestRule
equals, hashCode, isEmpty, toString
-
Constructor Details
-
WebRequestMethodsRule
public WebRequestMethodsRule(org.springframework.web.bind.annotation.RequestMethod... requestMethods) -
WebRequestMethodsRule
-
-
Method Details
-
getContent
Description copied from class:AbstractWebRequestRule
Return the discrete items a request condition is composed of.For example URL patterns, HTTP request methods, param expressions, etc.
- Specified by:
getContent
in classAbstractWebRequestRule<String>
- Returns:
- a collection of objects (never
null
)
-
getToStringInfix
Description copied from class:AbstractWebRequestRule
The notation to use when printing discrete items of content.For example
" || "
for URL patterns or" && "
for param expressions.- Specified by:
getToStringInfix
in classAbstractWebRequestRule<String>
-
matches
public boolean matches(org.springframework.web.context.request.NativeWebRequest request) -
matches
-