# Package org.springframework.web.servlet.mvc.condition

@NonNullApi @NonNullFields package org.springframework.web.servlet.mvc.condition
Common MVC logic for matching incoming requests based on conditions.

Related Packages
Package
Description
org.springframework.web.servlet.mvc
Standard controller implementations for the Servlet MVC framework that comes with Spring.
org.springframework.web.servlet.mvc.annotation
Support package for annotation-based Servlet MVC controllers.
org.springframework.web.servlet.mvc.method
Servlet-based infrastructure for handler method processing, building on the `org.springframework.web.method` package.
org.springframework.web.servlet.mvc.support
Support package for MVC controllers.
Class
Description
AbstractRequestCondition<T extends AbstractRequestCondition<T>>
A base class for `RequestCondition` types providing implementations of `AbstractRequestCondition.equals(Object)`, `AbstractRequestCondition.hashCode()`, and `AbstractRequestCondition.toString()`.
CompositeRequestCondition
Implements the `RequestCondition` contract by delegating to multiple `RequestCondition` types and using a logical conjunction (`' && '`) to ensure all conditions match a given request.
ConsumesRequestCondition
A logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions.
HeadersRequestCondition
A logical conjunction (`' && '`) request condition that matches a request against a set of header expressions with syntax defined in `RequestMapping.headers()`.
MediaTypeExpression
A contract for media type expressions (for example, "text/plain", "!text/plain") as defined in the `@RequestMapping` annotation for "consumes" and "produces" conditions.
NameValueExpression<T>
A contract for `"name!=value"` style expression used to specify request parameters and request header conditions in `@RequestMapping`.
ParamsRequestCondition
A logical conjunction (`' && '`) request condition that matches a request against a set parameter expressions with syntax defined in `RequestMapping.params()`.
PathPatternsRequestCondition
A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.
PatternsRequestCondition
A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.
ProducesRequestCondition
A logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions.
RequestCondition<T>
Contract for request mapping conditions.
RequestConditionHolder
A holder for a `RequestCondition` useful when the type of the request condition is not known ahead of time, for example, custom condition.
RequestMethodsRequestCondition
A logical disjunction (' || ') request condition that matches a request against a set of `RequestMethods`.