接口的使用
cn.taketoday.web.handler.condition.RequestCondition
使用RequestCondition的程序包
程序包
说明
Common MVC logic for matching incoming requests based on conditions.
Method handler
-
cn.taketoday.web.handler.condition中RequestCondition的使用
修饰符和类型类说明classAbstractRequestCondition<T extends AbstractRequestCondition<T>>A base class forRequestConditiontypes providing implementations ofAbstractRequestCondition.equals(Object),AbstractRequestCondition.hashCode(), andAbstractRequestCondition.toString().classImplements theRequestConditioncontract by delegating to multipleRequestConditiontypes and using a logical conjunction (' && ') to ensure all conditions match a given request.final classA logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions.final classA logical conjunction (' && ') request condition that matches a request against a set of header expressions with syntax defined inRequestMapping.headers().final classA logical conjunction (' && ') request condition that matches a request against a set parameter expressions with syntax defined inRequestMapping.params().final classA logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.final classA logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions.final classA holder for aRequestConditionuseful when the type of the request condition is not known ahead of time, e.g. custom condition.final classA logical disjunction (' || ') request condition that matches a request against a set ofHttpMethods.修饰符和类型方法说明RequestConditionHolder.getCondition()Return the held request condition, ornullif not holding one.返回变量类型为RequestCondition的类型的cn.taketoday.web.handler.condition中的方法修饰符和类型方法说明List<RequestCondition<?>>CompositeRequestCondition.getConditions()Return the underlying conditions (possibly empty but nevernull).修饰符和类型方法说明private voidRequestConditionHolder.assertEqualConditionTypes(RequestCondition<?> thisCondition, RequestCondition<?> otherCondition) Ensure the held request conditions are of the same type.private RequestConditionHolder[]CompositeRequestCondition.wrap(RequestCondition<?>... rawConditions) 限定符构造器说明CompositeRequestCondition(RequestCondition<?>... requestConditions) Create an instance with 0 or moreRequestConditiontypes.RequestConditionHolder(RequestCondition<?> requestCondition) Create a new holder to wrap the given request condition. -
cn.taketoday.web.handler.method中RequestCondition的使用
修饰符和类型方法说明protected RequestCondition<?>RequestMappingHandlerMapping.getCustomCondition(AnnotatedElement element) Provide a custom method-level or type-level request condition.RequestMappingInfo.getCustomCondition()Return the "custom" condition of thisRequestMappingInfo, ornull.修饰符和类型方法说明RequestMappingInfo.addCustomCondition(RequestCondition<?> customCondition) Create a new instance based on the current one, also adding the given custom condition.protected RequestMappingInfoRequestMappingHandlerMapping.createRequestMappingInfo(RequestMapping requestMapping, RequestCondition<?> customCondition) Create aRequestMappingInfofrom the supplied@RequestMappingannotation, which is either a directly declared annotation, a meta-annotation, or the synthesized result of merging annotation attributes within an annotation hierarchy.protected RequestMappingInfoRequestMappingHandlerMapping.createRequestMappingInfo(HttpExchange httpExchange, RequestCondition<?> customCondition) Create aRequestMappingInfofrom the supplied@HttpExchangeannotation, or meta-annotation, or synthesized result of merging annotation attributes within an annotation hierarchy.RequestMappingInfo.Builder.customCondition(RequestCondition<?> condition) Set a custom condition to use.RequestMappingInfo.DefaultBuilder.customCondition(RequestCondition<?> condition) RequestMappingInfo.MutateBuilder.customCondition(RequestCondition<?> condition)