Package io.microsphere.spring.web.rule
Class WebRequestParamsRule
java.lang.Object
io.microsphere.spring.web.rule.AbstractWebRequestRule<WebRequestParamExpression>
io.microsphere.spring.web.rule.WebRequestParamsRule
- All Implemented Interfaces:
WebRequestRule
WebRequest Parameters WebRequestRule
A logical conjunction (' && ') request condition that matches a request against
a set parameter expressions with syntax defined in RequestMapping.params().
- Since:
- 1.0.0
- Author:
- Arjen Poutsma, Rossen Stoyanchev, Mercy
- See Also:
-
WebRequestRuleorg.springframework.web.servlet.mvc.condition.ParamsRequestConditionorg.springframework.web.reactive.result.condition.ParamsRequestCondition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<WebRequestParamExpression>Return the discrete items a request condition is composed of.protected StringThe notation to use when printing discrete items of content.booleanmatches(org.springframework.web.context.request.NativeWebRequest request) Methods inherited from class io.microsphere.spring.web.rule.AbstractWebRequestRule
equals, hashCode, isEmpty, toString
-
Constructor Details
-
WebRequestParamsRule
-
-
Method Details
-
getContent
Description copied from class:AbstractWebRequestRuleReturn the discrete items a request condition is composed of.For example URL patterns, HTTP request methods, param expressions, etc.
- Specified by:
getContentin classAbstractWebRequestRule<WebRequestParamExpression>- Returns:
- a collection of objects (never
null)
-
getToStringInfix
Description copied from class:AbstractWebRequestRuleThe notation to use when printing discrete items of content.For example
" || "for URL patterns or" && "for param expressions.- Specified by:
getToStringInfixin classAbstractWebRequestRule<WebRequestParamExpression>
-
matches
public boolean matches(org.springframework.web.context.request.NativeWebRequest request)
-