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:
-
WebRequestRule
org.springframework.web.servlet.mvc.condition.ParamsRequestCondition
org.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 String
The notation to use when printing discrete items of content.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
-
WebRequestParamsRule
-
-
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<WebRequestParamExpression>
- 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<WebRequestParamExpression>
-
matches
public boolean matches(org.springframework.web.context.request.NativeWebRequest request)
-