Package org.springframework.web.servlet.mvc.condition
@NullMarked
package org.springframework.web.servlet.mvc.condition
Common MVC logic for matching incoming requests based on conditions.
-
ClassDescriptionAbstractRequestCondition<T extends AbstractRequestCondition<T>>A base class for
RequestCondition
types providing implementations ofAbstractRequestCondition.equals(Object)
,AbstractRequestCondition.hashCode()
, andAbstractRequestCondition.toString()
.Implements theRequestCondition
contract by delegating to multipleRequestCondition
types and using a logical conjunction (' && '
) to ensure all conditions match a given request.A logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions.A logical conjunction (' && '
) request condition that matches a request against a set of header expressions with syntax defined inRequestMapping.headers()
.A contract for media type expressions (for example, "text/plain", "!text/plain") as defined in the@RequestMapping
annotation for "consumes" and "produces" conditions.A contract for"name!=value"
style expression used to specify request parameters and request header conditions in@RequestMapping
.A logical conjunction (' && '
) request condition that matches a request against a set parameter expressions with syntax defined inRequestMapping.params()
.A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.Deprecated, for removal: This API element is subject to removal in a future version.A logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions.Contract for request mapping conditions.A holder for aRequestCondition
useful when the type of the request condition is not known ahead of time, for example, custom condition.A logical disjunction (' || ') request condition that matches a request against a set ofRequestMethods
.
PathMatcher
andUrlPathHelper
is deprecated for use at runtime in web modules in favor of parsed patterns withPathPatternParser
.