Class ProducesRequestCondition

java.lang.Object
org.springframework.web.servlet.mvc.condition.AbstractRequestCondition<ProducesRequestCondition>
org.springframework.web.servlet.mvc.condition.ProducesRequestCondition
All Implemented Interfaces:
RequestCondition<ProducesRequestCondition>

public final class ProducesRequestCondition extends AbstractRequestCondition<ProducesRequestCondition>
A logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions. Two kinds of media type expressions are supported, which are described in RequestMapping.produces() and RequestMapping.headers() where the header name is 'Accept'. Regardless of which syntax is used, the semantics are the same.
Since:
3.1
Author:
Arjen Poutsma, Rossen Stoyanchev