Uses of Class
org.springframework.web.servlet.mvc.condition.ConsumesRequestCondition
Packages that use ConsumesRequestCondition
Package
Description
Common MVC logic for matching incoming requests based on conditions.
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package.-
Uses of ConsumesRequestCondition in org.springframework.web.servlet.mvc.condition
Subclasses with type arguments of type ConsumesRequestCondition in org.springframework.web.servlet.mvc.conditionModifier and TypeClassDescriptionfinal classA logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions.Methods in org.springframework.web.servlet.mvc.condition that return ConsumesRequestConditionModifier and TypeMethodDescriptionConsumesRequestCondition.combine(ConsumesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.ConsumesRequestCondition.getMatchingCondition(jakarta.servlet.http.HttpServletRequest request) 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.Methods in org.springframework.web.servlet.mvc.condition with parameters of type ConsumesRequestConditionModifier and TypeMethodDescriptionConsumesRequestCondition.combine(ConsumesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.intConsumesRequestCondition.compareTo(ConsumesRequestCondition other, jakarta.servlet.http.HttpServletRequest request) 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 -
Uses of ConsumesRequestCondition in org.springframework.web.servlet.mvc.method
Methods in org.springframework.web.servlet.mvc.method that return ConsumesRequestConditionModifier and TypeMethodDescriptionRequestMappingInfo.getConsumesCondition()Return the "consumes" condition of thisRequestMappingInfo; or instance with 0 consumes expressions (nevernull).Constructors in org.springframework.web.servlet.mvc.method with parameters of type ConsumesRequestConditionModifierConstructorDescriptionRequestMappingInfo(@Nullable String name, @Nullable PatternsRequestCondition patterns, @Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params, @Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes, @Nullable ProducesRequestCondition produces, @Nullable VersionRequestCondition version, @Nullable RequestCondition<?> custom) Deprecated.RequestMappingInfo(@Nullable PatternsRequestCondition patterns, @Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params, @Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes, @Nullable ProducesRequestCondition produces, @Nullable VersionRequestCondition version, @Nullable RequestCondition<?> custom) Deprecated.in favor usingRequestMappingInfo.BuilderviaRequestMappingInfo.paths(String...).
RequestMappingInfo.BuilderviaRequestMappingInfo.paths(String...).