spring-framework / org.springframework.web.reactive.result.condition

Package org.springframework.web.reactive.result.condition

Types

AbstractRequestCondition

abstract class AbstractRequestCondition<T : AbstractRequestCondition<T>> : RequestCondition<T>

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

CompositeRequestCondition

open class CompositeRequestCondition : AbstractRequestCondition<CompositeRequestCondition>

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

When CompositeRequestCondition instances are combined or compared they are expected to (a) contain the same number of conditions and (b) that conditions in the respective index are of the same type. It is acceptable to provide null conditions or no conditions at all to the constructor.

MediaTypeExpression

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.

NameValueExpression

interface NameValueExpression<T : Any>

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