|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packageorg.springframework.web.servlet.mvc.condition
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
A logical disjunction (' || ') request condition that matches aClass RequestMethodsRequestCondition, constructor RequestMethodsRequestCondition(RequestMethod[])requestrequest against a set of RequestMethods.@author Arjen Poutsma @author Rossen Stoyanchev @since 3.1
Create a new instance with the given request methods. @param requestMethods 0 or more HTTP request methods;Class RequestMethodsRequestCondition, RequestMethodsRequestCondition combine(RequestMethodsRequestCondition)if, 0 the condition will match to every request.
Returns a new instance with a union of the HTTP requestClass RequestMethodsRequestCondition, int compareTo(RequestMethodsRequestCondition, HttpServletRequest)methodsmethodsfrom "this" and the "other" instance.
Returns:Class RequestMethodsRequestCondition, RequestMethodsRequestCondition getMatchingCondition(HttpServletRequest)
- 0 if the two conditions contain the same number of HTTP request
methods.methods- Less than 0 if "this" instance has an HTTP request method but "other" doesn'
t.t- Greater than 0 "other" has an HTTP request method but "this" doesn'
t.tIt is assumed that both instances have been obtained
viavia .getMatchingCondition(HttpServletRequest) and therefore eachinstanceinstance contains the matching HTTP request method only or is otherwise empty.
ChecksCheck if any of the HTTP request methods match the given requestandandreturnsreturn an instance that contains the matching HTTP request method only.@param request the current request @return the same instance if the conditioncontains no request method;isorempty, a new conditionwithwith thematchingmatched request method;, oror{@code null} if no request methods match.