Generated by
JDiff

Class org.springframework.web.servlet.mvc.condition.ConsumesRequestCondition

Documentation changed from old to new.

Changed Constructors
ConsumesRequestCondition(String[]) Documentation changed from old to new.
Creates a new instance from 0 or more "consumes" expressions.
ConsumesRequestCondition(String[], String[]) Documentation changed from old to new.
Creates a new instance with "consumes" and "header" expressions.
 

Changed Methods
ConsumesRequestCondition combine(ConsumesRequestCondition) Documentation changed from old to new.
Returns the "other" instance if it has any expressions; returns "this" instance otherwise.
int compareTo(ConsumesRequestCondition, HttpServletRequest) Documentation changed from old to new.
Returns:
  • 0 if the two conditions have the same number of expressions
  • Less than 0 if "this" has more or more specific media type expressions
  • Greater than 0 if "other" has more or more specific media type expressions
ConsumesRequestCondition getMatchingCondition(HttpServletRequest) Documentation changed from old to new.
Checks if any of the contained media type expressions match the given request 'Content-Type' header and returns an instance that is guaranteed to contain matching expressions only.