接口的使用
org.springframework.web.reactive.result.condition.RequestCondition
使用RequestCondition的程序包 程序包 说明 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.method.annotation Infrastructure for annotation-based handler method processing.org.springframework.web.reactive.result.condition中RequestCondition的使用
实现RequestCondition的org.springframework.web.reactive.result.condition中的类 修饰符和类型 类 说明 class
AbstractRequestCondition<T extends AbstractRequestCondition<T>>
A base class forRequestCondition
types providing implementations ofAbstractRequestCondition.equals(Object)
,AbstractRequestCondition.hashCode()
, andAbstractRequestCondition.toString()
.class
CompositeRequestCondition
Implements theRequestCondition
contract by delegating to multipleRequestCondition
types and using a logical conjunction (' && ') to ensure all conditions match a given request.class
ConsumesRequestCondition
A logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions.class
HeadersRequestCondition
A logical conjunction (' && ') request condition that matches a request against a set of header expressions with syntax defined inRequestMapping.headers()
.class
ParamsRequestCondition
A logical conjunction (' && ') request condition that matches a request against a set parameter expressions with syntax defined inRequestMapping.params()
.class
PatternsRequestCondition
A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.class
ProducesRequestCondition
A logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions.class
RequestConditionHolder
A holder for aRequestCondition
useful when the type of the request condition is not known ahead of time, e.g. custom condition.class
RequestMethodsRequestCondition
A logical disjunction (' || ') request condition that matches a request against a set ofRequestMethods
.返回RequestCondition的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 RequestCondition<?>
RequestConditionHolder. getCondition()
Return the held request condition, ornull
if not holding one.返回变量类型为RequestCondition的类型的org.springframework.web.reactive.result.condition中的方法 修饰符和类型 方法 说明 List<RequestCondition<?>>
CompositeRequestCondition. getConditions()
Return the underlying conditions, possibly empty but nevernull
.参数类型为RequestCondition的org.springframework.web.reactive.result.condition中的构造器 构造器 说明 CompositeRequestCondition(RequestCondition<?>... requestConditions)
Create an instance with 0 or moreRequestCondition
types.RequestConditionHolder(RequestCondition<?> requestCondition)
Create a new holder to wrap the given request condition.org.springframework.web.reactive.result.method中RequestCondition的使用
实现RequestCondition的org.springframework.web.reactive.result.method中的类 修饰符和类型 类 说明 class
RequestMappingInfo
Request mapping information.返回RequestCondition的org.springframework.web.reactive.result.method中的方法 修饰符和类型 方法 说明 RequestCondition<?>
RequestMappingInfo. getCustomCondition()
Returns the "custom" condition of thisRequestMappingInfo
; ornull
.参数类型为RequestCondition的org.springframework.web.reactive.result.method中的方法 修饰符和类型 方法 说明 RequestMappingInfo.Builder
RequestMappingInfo.Builder. customCondition(RequestCondition<?> condition)
Set a custom condition to use.参数类型为RequestCondition的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.RequestMappingInfo(RequestMappingInfo info, RequestCondition<?> customRequestCondition)
Re-create a RequestMappingInfo with the given custom request condition.org.springframework.web.reactive.result.method.annotation中RequestCondition的使用
返回RequestCondition的org.springframework.web.reactive.result.method.annotation中的方法 修饰符和类型 方法 说明 protected RequestCondition<?>
RequestMappingHandlerMapping. getCustomMethodCondition(Method method)
Provide a custom method-level request condition.protected RequestCondition<?>
RequestMappingHandlerMapping. getCustomTypeCondition(Class<?> handlerType)
Provide a custom type-level request condition.参数类型为RequestCondition的org.springframework.web.reactive.result.method.annotation中的方法 修饰符和类型 方法 说明 protected RequestMappingInfo
RequestMappingHandlerMapping. createRequestMappingInfo(RequestMapping requestMapping, RequestCondition<?> customCondition)
Create aRequestMappingInfo
from the supplied@RequestMapping
annotation, which is either a directly declared annotation, a meta-annotation, or the synthesized result of merging annotation attributes within an annotation hierarchy.