类的使用
org.springframework.web.reactive.result.condition.HeadersRequestCondition
使用HeadersRequestCondition的程序包 程序包 说明 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中HeadersRequestCondition的使用
返回HeadersRequestCondition的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 HeadersRequestCondition
HeadersRequestCondition. combine(HeadersRequestCondition other)
Returns a new instance with the union of the header expressions from "this" and the "other" instance.HeadersRequestCondition
HeadersRequestCondition. getMatchingCondition(ServerWebExchange exchange)
Returns "this" instance if the request matches all expressions; ornull
otherwise.参数类型为HeadersRequestCondition的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 HeadersRequestCondition
HeadersRequestCondition. combine(HeadersRequestCondition other)
Returns a new instance with the union of the header expressions from "this" and the "other" instance.int
HeadersRequestCondition. compareTo(HeadersRequestCondition other, ServerWebExchange exchange)
Compare to another condition based on header expressions.org.springframework.web.reactive.result.method中HeadersRequestCondition的使用
返回HeadersRequestCondition的org.springframework.web.reactive.result.method中的方法 修饰符和类型 方法 说明 HeadersRequestCondition
RequestMappingInfo. getHeadersCondition()
Returns the "headers" condition of thisRequestMappingInfo
; or instance with 0 header expressions, nevernull
.参数类型为HeadersRequestCondition的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.