类的使用
org.springframework.web.servlet.mvc.condition.ProducesRequestCondition
使用ProducesRequestCondition的程序包 程序包 说明 org.springframework.web.servlet.mvc.condition Common MVC logic for matching incoming requests based on conditions.org.springframework.web.servlet.mvc.method Servlet-based infrastructure for handler method processing, building on theorg.springframework.web.method
package.org.springframework.web.servlet.mvc.condition中ProducesRequestCondition的使用
返回ProducesRequestCondition的org.springframework.web.servlet.mvc.condition中的方法 修饰符和类型 方法 说明 ProducesRequestCondition
ProducesRequestCondition. combine(ProducesRequestCondition other)
Returns the "other" instance if it has any expressions; returns "this" instance otherwise.ProducesRequestCondition
ProducesRequestCondition. getMatchingCondition(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.参数类型为ProducesRequestCondition的org.springframework.web.servlet.mvc.condition中的方法 修饰符和类型 方法 说明 ProducesRequestCondition
ProducesRequestCondition. combine(ProducesRequestCondition other)
Returns the "other" instance if it has any expressions; returns "this" instance otherwise.int
ProducesRequestCondition. compareTo(ProducesRequestCondition other, HttpServletRequest request)
Compares this and another "produces" condition as follows: Sort 'Accept' header media types by quality value viaMediaType.sortByQualityValue(List)
and iterate the list.org.springframework.web.servlet.mvc.method中ProducesRequestCondition的使用
返回ProducesRequestCondition的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 ProducesRequestCondition
RequestMappingInfo. getProducesCondition()
Return the "produces" condition of thisRequestMappingInfo
; or instance with 0 produces expressions (nevernull
).参数类型为ProducesRequestCondition的org.springframework.web.servlet.mvc.method中的构造器 构造器 说明 RequestMappingInfo(String name, PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom)
RequestMappingInfo(PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom)
Creates a new instance with the given request conditions.