Uses of Class
org.springframework.web.servlet.mvc.condition.ProducesRequestCondition
Packages that use ProducesRequestCondition
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 ProducesRequestCondition in org.springframework.web.servlet.mvc.condition
Subclasses with type arguments of type ProducesRequestCondition in org.springframework.web.servlet.mvc.conditionModifier and TypeClassDescriptionfinal classA logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions.Methods in org.springframework.web.servlet.mvc.condition that return ProducesRequestConditionModifier and TypeMethodDescriptionProducesRequestCondition.combine(ProducesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.ProducesRequestCondition.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 ProducesRequestConditionModifier and TypeMethodDescriptionProducesRequestCondition.combine(ProducesRequestCondition other) Returns the "other" instance if it has any expressions; returns "this" instance otherwise.intProducesRequestCondition.compareTo(ProducesRequestCondition other, jakarta.servlet.http.HttpServletRequest request) Compares this and another "produces" condition as follows: Sort 'Accept' header media types by quality value viaMimeTypeUtils.sortBySpecificity(List)and iterate the list. -
Uses of ProducesRequestCondition in org.springframework.web.servlet.mvc.method
Methods in org.springframework.web.servlet.mvc.method that return ProducesRequestConditionModifier and TypeMethodDescriptionRequestMappingInfo.getProducesCondition()Return the "produces" condition of thisRequestMappingInfo; or instance with 0 produces expressions (nevernull).Constructors in org.springframework.web.servlet.mvc.method with parameters of type ProducesRequestConditionModifierConstructorDescriptionRequestMappingInfo(@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...).