Class WebRequestConsumesRule

All Implemented Interfaces:
WebRequestRule

public class WebRequestConsumesRule extends AbstractWebRequestRule<ConsumeMediaTypeExpression>
WebRequest Consumes WebRequestRule

A logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions. Two kinds of media type expressions are supported, which are described in RequestMapping.consumes() and RequestMapping.headers() where the header name is 'Content-Type'. Regardless of which syntax is used, the semantics are the same.

Since:
1.0.066
Author:
Arjen Poutsma, Rossen Stoyanchev, Mercy
See Also:
  • WebRequestRule
  • org.springframework.web.servlet.mvc.condition.ConsumesRequestCondition
  • org.springframework.web.reactive.result.condition.ConsumesRequestCondition