类的使用
org.springframework.web.reactive.result.condition.ConsumesRequestCondition
使用ConsumesRequestCondition的程序包 程序包 说明 org.springframework.web.reactive.result.condition RequestCondition
and implementations for matching requests based on different criteria.org.springframework.web.reactive.result.method Infrastructure for handler method processing.org.springframework.web.reactive.result.condition中ConsumesRequestCondition的使用
返回ConsumesRequestCondition的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 ConsumesRequestCondition
ConsumesRequestCondition. combine(ConsumesRequestCondition other)
Returns the "other" instance if it has any expressions; returns "this" instance otherwise.ConsumesRequestCondition
ConsumesRequestCondition. getMatchingCondition(ServerWebExchange exchange)
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.参数类型为ConsumesRequestCondition的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 ConsumesRequestCondition
ConsumesRequestCondition. combine(ConsumesRequestCondition other)
Returns the "other" instance if it has any expressions; returns "this" instance otherwise.int
ConsumesRequestCondition. compareTo(ConsumesRequestCondition other, ServerWebExchange exchange)
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 expressionsorg.springframework.web.reactive.result.method中ConsumesRequestCondition的使用
返回ConsumesRequestCondition的org.springframework.web.reactive.result.method中的方法 修饰符和类型 方法 说明 ConsumesRequestCondition
RequestMappingInfo. getConsumesCondition()
Returns the "consumes" condition of thisRequestMappingInfo
; or instance with 0 consumes expressions, nevernull
.参数类型为ConsumesRequestCondition的org.springframework.web.reactive.result.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.