Top Description Interfaces Classes
module spring.webmvc

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

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Common MVC logic for matching incoming requests based on conditions.

Interface Summary

Modifier and TypeInterface and Description
public interface
MediaTypeExpression

A contract for media type expressions (e.g. "text/plain", "!text/plain") as defined in the @RequestMapping annotation for "consumes" and "produces" conditions.

public interface
NameValueExpression<
the value type
T
>

A contract for "name!=value" style expression used to specify request parameters and request header conditions in @RequestMapping.

public interface
RequestCondition<
the type of objects that this RequestCondition can be combined with and compared to
T
>

Contract for request mapping conditions.

Class Summary

Modifier and TypeClass and Description
pack-priv abstract class
AbstractMediaTypeExpression

Supports media type expressions as described in: RequestMapping#consumes() and RequestMapping#produces().

pack-priv abstract class
public abstract class
AbstractRequestCondition<
the type of objects that this RequestCondition can be combined with and compared to
T extends AbstractRequestCondition<T>
>

A base class for RequestCondition types providing implementations of equals(Object), hashCode(), and toString().

public class
CompositeRequestCondition

Implements the RequestCondition contract by delegating to multiple RequestCondition types and using a logical conjunction (' && ') to ensure all conditions match a given request.

public class
ConsumesRequestCondition

A logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions.

public class
HeadersRequestCondition

A logical conjunction (' && ') request condition that matches a request against a set of header expressions with syntax defined in RequestMapping#headers().

public class
ParamsRequestCondition

A logical conjunction (' && ') request condition that matches a request against a set parameter expressions with syntax defined in RequestMapping#params().

public class
PathPatternsRequestCondition

A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.

public class
PatternsRequestCondition

A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.

public class
ProducesRequestCondition

A logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions.

public class
RequestConditionHolder

A holder for a RequestCondition useful when the type of the request condition is not known ahead of time, e.g. custom condition.

public class
RequestMethodsRequestCondition

A logical disjunction (' || ') request condition that matches a request against a set of RequestMethods.