类的使用
org.springframework.web.reactive.result.condition.PatternsRequestCondition
使用PatternsRequestCondition的程序包 程序包 说明 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中PatternsRequestCondition的使用
返回PatternsRequestCondition的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 PatternsRequestCondition
PatternsRequestCondition. combine(PatternsRequestCondition other)
Returns a new instance with URL patterns from the current instance ("this") and the "other" instance as follows: If there are patterns in both instances, combine the patterns in "this" with the patterns in "other" usingPathPattern.combine(PathPattern)
.PatternsRequestCondition
PatternsRequestCondition. getMatchingCondition(ServerWebExchange exchange)
Checks if any of the patterns match the given request and returns an instance that is guaranteed to contain matching patterns, sorted.参数类型为PatternsRequestCondition的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 PatternsRequestCondition
PatternsRequestCondition. combine(PatternsRequestCondition other)
Returns a new instance with URL patterns from the current instance ("this") and the "other" instance as follows: If there are patterns in both instances, combine the patterns in "this" with the patterns in "other" usingPathPattern.combine(PathPattern)
.int
PatternsRequestCondition. compareTo(PatternsRequestCondition other, ServerWebExchange exchange)
Compare the two conditions based on the URL patterns they contain.org.springframework.web.reactive.result.method中PatternsRequestCondition的使用
返回PatternsRequestCondition的org.springframework.web.reactive.result.method中的方法 修饰符和类型 方法 说明 PatternsRequestCondition
RequestMappingInfo. getPatternsCondition()
Returns the URL patterns of thisRequestMappingInfo
; or instance with 0 patterns, nevernull
.参数类型为PatternsRequestCondition的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.